修复屏蔽字问题

This commit is contained in:
aozhiwei 2020-12-23 13:24:43 +08:00
parent 0ebc307758
commit c4d5e32189
3 changed files with 5 additions and 4 deletions

View File

@ -177,7 +177,7 @@ void ChatMgr::ProcTeamChat(Player* hum, const cs::CMSendChatMsg& msg)
if (hum) {
hum->SendMsg(notifymsg);
if (hum->chat_channel == kCCTeam) {
a8::SetBitFlag(hum->red_point_flags_, RPF_FriendApply);
a8::SetBitFlag(hum->red_point_flags_, RPF_Chat);
hum->SyncRedPoint();
}
}
@ -273,7 +273,7 @@ void ChatMgr::SyncPrivateChatMsg(Player* hum)
}
} else {
hum->MarkNewMsg();
a8::SetBitFlag(hum->red_point_flags_, RPF_FriendApply);
a8::SetBitFlag(hum->red_point_flags_, RPF_Chat);
hum->SyncRedPoint();
}
}
@ -298,7 +298,7 @@ void ChatMgr::SyncGuildChatMsg(Player* hum)
}
} else {
hum->MarkNewMsg();
a8::SetBitFlag(hum->red_point_flags_, RPF_FriendApply);
a8::SetBitFlag(hum->red_point_flags_, RPF_Chat);
hum->SyncRedPoint();
}
}

View File

@ -56,7 +56,7 @@ enum ReadPointFlag
{
RPF_FriendApply = 0,
RPF_GuildApply = 1,
RPF_Chat = 1
RPF_Chat = 2
};
enum GuildMemberQuitReason

View File

@ -60,6 +60,7 @@ private:
if (strword == " " || strword.empty()) { //忽略空格
continue;
}
std::transform(strword.begin(), strword.end(), strword.begin(), ::tolower);
auto itr = dirty_words.find(strword.size());
if (dirty_words.find(strword.size()) != dirty_words.end()) {
itr->second[strword] = strword;