少年修仙传客户端代码仓库
hch
2024-11-15 721e382737bb97b875fb572e64745dd81e9b7bb8
0312 聊天限制屏蔽字发送 *替换空
1个文件已修改
12 ■■■■■ 已修改文件
System/Chat/ChatSendComponent.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatSendComponent.cs
@@ -161,6 +161,18 @@
            }
            m_OnChating = true;
            string msg = m_ChatInput.text;
            if (DirtyWordConfig.IsDirtWord(msg))
            {
                msg = DirtyWordConfig.IsDirtWord(msg, '*');
                msg = msg.Replace("*", "");
                m_ChatInput.text = msg;
                SysNotifyMgr.Instance.ShowTip("DirtyWordWarn");
                m_OnChating = false;
                return;
            }
            ChatCtrl.Inst.SendChatInfo(ChatCtrl.Inst.presentChatType, msg, info);
            StartCoroutine(Co_CoolDowmChat());