From 7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 May 2015 22:04:29 +0300 Subject: Add strong typed bool type TryRemoveColors. --- src/net/eathena/chathandler.cpp | 8 ++++---- src/net/tmwa/chathandler.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 76603734c..9db670080 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -558,7 +558,7 @@ void ChatHandler::processChatContinue(std::string chatMsg, own, channel, IgnoreRecord_false, - true); + TryRemoveColors_true); } const size_t pos = chatMsg.find(" : ", 0); @@ -641,7 +641,7 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg) "%s is not exists."), nick.c_str()), ChatMsgType::BY_SERVER, IgnoreRecord_false, - false); + TryRemoveColors_false); if (!mSentWhispers.empty()) mSentWhispers.pop(); return; @@ -787,7 +787,7 @@ void ChatHandler::processJoinChannel(Net::MessageIn &msg) "%s is not exists."), channel.c_str()), ChatMsgType::BY_SERVER, IgnoreRecord_false, - false); + TryRemoveColors_false); break; case 1: @@ -881,7 +881,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) ChatMsgType::BY_OTHER, GENERAL_CHANNEL, IgnoreRecord_false, - true); + TryRemoveColors_true); } if (allow && being && player_relations.hasPermission(sender_name, diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index be04b2964..98f6b2c18 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -335,7 +335,7 @@ void ChatHandler::processChatContinue(std::string chatMsg, ChatMsgType::BY_PLAYER, channel, IgnoreRecord_false, - true); + TryRemoveColors_true); } if (channel.empty()) @@ -406,7 +406,7 @@ void ChatHandler::processGmChat(Net::MessageIn &msg) ChatMsgType::BY_PLAYER, channel, IgnoreRecord_false, - true); + TryRemoveColors_true); } if (channel.empty()) @@ -678,7 +678,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) ChatMsgType::BY_OTHER, channel, IgnoreRecord_false, - true); + TryRemoveColors_true); } if (allow && player_relations.hasPermission(sender_name, -- cgit v1.2.3-60-g2f50