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 = []