diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-11 19:10:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-11 19:10:19 +0300 |
commit | ee1fc0b63cb7f27df85c43474497b805df6e31f5 (patch) | |
tree | d233f17e1bfd751b6939646a24f1253ae8d14796 /src/gui/widgets/tabs/chat | |
parent | a80f4ac5c1c3ef4d3ac5f026591b16074d0bf451 (diff) | |
download | ManaVerse-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.gz ManaVerse-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.bz2 ManaVerse-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.xz ManaVerse-ee1fc0b63cb7f27df85c43474497b805df6e31f5.zip |
Remove default parameters from ChatTab::chatLog.
Diffstat (limited to 'src/gui/widgets/tabs/chat')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.h | 12 |
2 files changed, 14 insertions, 6 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index e4f6d751a..3fc6fb252 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -552,12 +552,16 @@ void ChatTab::showOnline(const std::string &nick, { // TRANSLATORS: chat message chatLog(strprintf(_("%s is now Online."), nick.c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } else { // TRANSLATORS: chat message chatLog(strprintf(_("%s is now Offline."), nick.c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } } diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index 440501af4..6e51ca172 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -40,7 +40,12 @@ class ScrollArea; #define debugMsg(str) \ if (debugChatTab) \ - debugChatTab->chatLog(str, ChatMsgType::BY_SERVER); + { \ + debugChatTab->chatLog(str, \ + ChatMsgType::BY_SERVER, \ + IgnoreRecord_false, \ + TryRemoveColors_true); \ + } #define setTabColors(name) \ setTabColor(&getThemeColor(name), \ @@ -79,9 +84,8 @@ class ChatTab notfinal : public Tab */ void chatLog(std::string line, ChatMsgTypeT own, - const IgnoreRecord ignoreRecord = IgnoreRecord_false, - const TryRemoveColors tryRemoveColors - = TryRemoveColors_true); + const IgnoreRecord ignoreRecord, + const TryRemoveColors tryRemoveColors); /** * Adds the text to the message list |