| | |
| | | return false; |
| | | } |
| | | |
| | | if (DirtyWordConfig.IsDirtWord(info) || UIHelper.HasSpecialCharac(info) |
| | | if (DirtyWordConfig.IsDirtWord(info) || UIHelper.HasSpecCheckChat(info) |
| | | || DirtyNameConfig.IsDirtName(info)) |
| | | { |
| | | errorCode = 3; |
| | |
| | | pack.Content = content; |
| | | pack.Len = (ushort)GetUTF8InfoLen(content); |
| | | GameNetSystem.Instance.SendInfo(pack); |
| | | ChatReport(channelType, content); |
| | | } |
| | | |
| | | void ChatReport(int chatType, string content, string toPlayer="") |
| | | { |
| | | try |
| | | { |
| | | var channelName = Language.Get($"ChatTab{chatType}"); |
| | | |
| | | OperationLogCollect.Instance.ChatReport(content, channelName, toPlayer, chatType); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | Debug.LogError(e.StackTrace + e.Message); |
| | | } |
| | | } |
| | | |
| | | public readonly int maxTalkCount = 1000; //聊天数量上限 |