少年修仙传客户端代码仓库
client_linchunjie
2018-11-10 de23c6e2247671dd6d53567d8616f161b34907fe
4700 【前端】【1.3】客户端自动禁言
1个文件已修改
12 ■■■■ 已修改文件
System/Chat/ChatSendComponent.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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