summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.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/gui/windows/chatwindow.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/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index ba882b985..44053c50c 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1114,7 +1114,9 @@ void ChatWindow::addWhisper(const std::string &restrict nick,
else
{
localChatTab->chatLog(std::string(nick).append(
- " : ").append(mes), ChatMsgType::ACT_WHISPER, false);
+ " : ").append(mes),
+ ChatMsgType::ACT_WHISPER,
+ IgnoreRecord_false);
if (localPlayer)
localPlayer->afkRespond(nullptr, nick);
}
@@ -1506,7 +1508,7 @@ std::string ChatWindow::autoCompleteHistory(const std::string &partName) const
bool ChatWindow::resortChatLog(std::string line,
ChatMsgType::Type own,
const std::string &channel,
- const bool ignoreRecord,
+ const IgnoreRecord ignoreRecord,
const bool tryRemoveColors)
{
if (own == ChatMsgType::BY_UNKNOWN)
@@ -1660,7 +1662,7 @@ bool ChatWindow::resortChatLog(std::string line,
}
void ChatWindow::battleChatLog(const std::string &line, ChatMsgType::Type own,
- const bool ignoreRecord,
+ const IgnoreRecord ignoreRecord,
const bool tryRemoveColors)
{
if (own == ChatMsgType::BY_UNKNOWN)
@@ -1674,7 +1676,7 @@ void ChatWindow::battleChatLog(const std::string &line, ChatMsgType::Type own,
void ChatWindow::channelChatLog(const std::string &channel,
const std::string &line,
ChatMsgType::Type own,
- const bool ignoreRecord,
+ const IgnoreRecord ignoreRecord,
const bool tryRemoveColors)
{
std::string tempChannel = channel;