From e7779c1ac0a5dd96173586c7fabb8093d5a90793 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Nov 2021 19:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0msg=5Ftype=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/imserver/player.cc | 4 +++- server/tools/robot/virtualclient/new_robot.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/imserver/player.cc b/server/imserver/player.cc index 84c6f5c..30a992a 100644 --- a/server/imserver/player.cc +++ b/server/imserver/player.cc @@ -575,7 +575,9 @@ void Player::_CMSendChatMsg(f8::MsgHdr& hdr, const cs::CMSendChatMsg& msg) return; } cs::CMSendChatMsg* mutable_msg = (cs::CMSendChatMsg*)&msg; - mutable_msg->set_msg_body(MetaMgr::Instance()->ReplaceDirtyWord(msg.msg_body(), '*')); + if (msg.msg_type() == 2) { + mutable_msg->set_msg_body(MetaMgr::Instance()->ReplaceDirtyWord(msg.msg_body(), '*')); + } switch (msg.chat_channel()) { case kCCWorld: ChatMgr::Instance()->ProcWorldChat(this, msg); diff --git a/server/tools/robot/virtualclient/new_robot.py b/server/tools/robot/virtualclient/new_robot.py index 256f30c..5060af0 100644 --- a/server/tools/robot/virtualclient/new_robot.py +++ b/server/tools/robot/virtualclient/new_robot.py @@ -21,7 +21,7 @@ def main(): help = "account info") (options, args) = parser.parse_args() - ws_url = args if args else 'wss://relation-dny.kingsome.cn/friend/websocket' + ws_url = args if args else 'wss://relation-test.kingsome.cn/friend/websocket' # ws_url = args if args else 'ws://192.168.100.21:8911/friend/websocket' accounts = options.accounts.split(',') accounts = []