添加msg_type判断

This commit is contained in:
aozhiwei 2021-11-03 19:13:18 +08:00
parent ed0f3dfbac
commit e7779c1ac0
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

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