添加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;
|
return;
|
||||||
}
|
}
|
||||||
cs::CMSendChatMsg* mutable_msg = (cs::CMSendChatMsg*)&msg;
|
cs::CMSendChatMsg* mutable_msg = (cs::CMSendChatMsg*)&msg;
|
||||||
|
if (msg.msg_type() == 2) {
|
||||||
mutable_msg->set_msg_body(MetaMgr::Instance()->ReplaceDirtyWord(msg.msg_body(), '*'));
|
mutable_msg->set_msg_body(MetaMgr::Instance()->ReplaceDirtyWord(msg.msg_body(), '*'));
|
||||||
|
}
|
||||||
switch (msg.chat_channel()) {
|
switch (msg.chat_channel()) {
|
||||||
case kCCWorld:
|
case kCCWorld:
|
||||||
ChatMgr::Instance()->ProcWorldChat(this, msg);
|
ChatMgr::Instance()->ProcWorldChat(this, msg);
|
||||||
|
@ -21,7 +21,7 @@ def main():
|
|||||||
help = "account info")
|
help = "account info")
|
||||||
(options, args) = parser.parse_args()
|
(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'
|
# ws_url = args if args else 'ws://192.168.100.21:8911/friend/websocket'
|
||||||
accounts = options.accounts.split(',')
|
accounts = options.accounts.split(',')
|
||||||
accounts = []
|
accounts = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user