少年修仙传客户端代码仓库
client_Zxw
2018-11-10 f2fe52bc5ae4a2a520794d350dd65c1b8155eff3
System/Chat/ChatSendComponent.cs
@@ -247,9 +247,9 @@
        }
        #region 恶意发言
        private string repeatChatContent = string.Empty;
        private int repeatChatCount = 0;
        private DateTime repeatTime = DateTime.Now;
        static string repeatChatContent = string.Empty;
        static int repeatChatCount = 0;
        static DateTime repeatTime = DateTime.Now;
        private void CheckRepeatContent(string _content)
        {
            if (repeatChatContent.Equals(_content)
@@ -269,9 +269,9 @@
            }
        }
        int maliceChatCount = 0;
        int maliceRecordCount = 0;
        private DateTime maliceChatTime = DateTime.Now;
        static int maliceChatCount = 0;
        static int maliceRecordCount = 0;
        static DateTime maliceChatTime = DateTime.Now;
        private void CheckMaliceChat(string _content)
        {
            if ((TimeUtility.ServerNow - maliceChatTime).TotalSeconds < chatCenter.banCheckSecond