1
This commit is contained in:
parent
6a8b071308
commit
22da1c6a3d
@ -6,6 +6,7 @@
|
||||
#include "guild.h"
|
||||
#include "guildmgr.h"
|
||||
#include "typeconvert.h"
|
||||
#include "metamgr.h"
|
||||
|
||||
void ChatMgr::Init()
|
||||
{
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "handlermgr.h"
|
||||
#include "jsondatamgr.h"
|
||||
#include "chatmgr.h"
|
||||
#include "metamgr.h"
|
||||
|
||||
#include "ss_msgid.pb.h"
|
||||
#include "framework/cpp/httpclientpool.h"
|
||||
@ -566,6 +567,8 @@ void Player::_CMSendChatMsg(f8::MsgHdr& hdr, const cs::CMSendChatMsg& msg)
|
||||
if (!IsValidChatChannel(msg.chat_channel())) {
|
||||
return;
|
||||
}
|
||||
cs::CMSendChatMsg* mutable_msg = (cs::CMSendChatMsg*)&msg;
|
||||
mutable_msg->set_msg_body(MetaMgr::Instance()->ReplaceDirtyWord(msg.msg_body(), '*'));
|
||||
switch (msg.chat_channel()) {
|
||||
case kCCWorld:
|
||||
ChatMgr::Instance()->ProcWorldChat(this, msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user