summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-24 21:49:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-24 21:49:22 +0300
commit860d3e8e1bbe99b77763d533aebba9fde01e74c6 (patch)
tree7c87dfc372592507ce0a574aff115f209daefd08 /src/net/tmwa/chathandler.cpp
parent4749c8977e2e803692bd844b5400f8d72cbaf17f (diff)
downloadmv-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.gz
mv-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.bz2
mv-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.xz
mv-860d3e8e1bbe99b77763d533aebba9fde01e74c6.zip
Add strong typed bool type IgnoreRecord.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index e870ba563..be04b2964 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -331,8 +331,11 @@ void ChatHandler::processChatContinue(std::string chatMsg,
bool allow(true);
if (chatWindow)
{
- allow = chatWindow->resortChatLog(chatMsg, ChatMsgType::BY_PLAYER,
- channel, false, true);
+ allow = chatWindow->resortChatLog(chatMsg,
+ ChatMsgType::BY_PLAYER,
+ channel,
+ IgnoreRecord_false,
+ true);
}
if (channel.empty())
@@ -399,8 +402,11 @@ void ChatHandler::processGmChat(Net::MessageIn &msg)
bool allow(true);
if (chatWindow)
{
- allow = chatWindow->resortChatLog(chatMsg, ChatMsgType::BY_PLAYER,
- channel, false, true);
+ allow = chatWindow->resortChatLog(chatMsg,
+ ChatMsgType::BY_PLAYER,
+ channel,
+ IgnoreRecord_false,
+ true);
}
if (channel.empty())
@@ -669,7 +675,10 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg)
{
allow = chatWindow->resortChatLog(
removeColors(sender_name).append(" : ").append(chatMsg),
- ChatMsgType::BY_OTHER, channel, false, true);
+ ChatMsgType::BY_OTHER,
+ channel,
+ IgnoreRecord_false,
+ true);
}
if (allow && player_relations.hasPermission(sender_name,