添加msg_type判断
This commit is contained in:
parent
ed0f3dfbac
commit
e7779c1ac0
@ -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);
|
||||
|
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user