diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-24 22:04:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-24 22:04:29 +0300 |
commit | 7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e (patch) | |
tree | 6b440c246a9ed2c3d915c98f6b090a45673a2fb7 /src/net | |
parent | 860d3e8e1bbe99b77763d533aebba9fde01e74c6 (diff) | |
download | manaverse-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.gz manaverse-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.bz2 manaverse-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.xz manaverse-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.zip |
Add strong typed bool type TryRemoveColors.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 8 | ||||
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 6 |
2 files changed, 7 insertions, 7 deletions
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, |