| | |
| | | {
|
| | | isDirty = DirtyWordConfig.IsDirtWord(msg);
|
| | | msg = DirtyWordConfig.IsDirtWord(msg, '*');
|
| | | var length = msg.Length;
|
| | | var length = GetChatMessageLength(msg);
|
| | | if (length > CHAT_INFO_CNT)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1014"));
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | int GetChatMessageLength(string message)
|
| | | {
|
| | | message = WordAnalysis.Color_Start_Regex.Replace(message, string.Empty);
|
| | | message = WordAnalysis.Color_End_Regex.Replace(message, string.Empty);
|
| | | return message.Length;
|
| | | }
|
| | |
|
| | | bool CheckEmptyChat(string msg)
|
| | | {
|
| | | if (string.IsNullOrEmpty(msg.Replace(" ", string.Empty)))
|