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/notifymanager.cpp | |
parent | a80f4ac5c1c3ef4d3ac5f026591b16074d0bf451 (diff) | |
download | plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.gz plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.bz2 plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.tar.xz plus-ee1fc0b63cb7f27df85c43474497b805df6e31f5.zip |
Remove default parameters from ChatTab::chatLog.
Diffstat (limited to 'src/notifymanager.cpp')
-rw-r--r-- | src/notifymanager.cpp | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/src/notifymanager.cpp b/src/notifymanager.cpp index 738ebda8c..af07cbc4f 100644 --- a/src/notifymanager.cpp +++ b/src/notifymanager.cpp @@ -63,9 +63,19 @@ namespace NotifyManager if (str.empty()) return; if (tab != nullptr) - tab->chatLog(str, ChatMsgType::BY_SERVER); + { + tab->chatLog(str, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); + } else if (debugChatTab != nullptr) - debugChatTab->chatLog(str, ChatMsgType::BY_SERVER); + { + debugChatTab->chatLog(str, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); + } } void notify(const unsigned int message) @@ -86,7 +96,9 @@ namespace NotifyManager { case NotifyFlags::EMPTY: localChatTab->chatLog(gettext(info.text), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); break; case NotifyFlags::GUILD: @@ -133,8 +145,11 @@ namespace NotifyManager if (info.flags == NotifyFlags::INT && *info.text != 0) { - localChatTab->chatLog(strprintf(gettext(info.text), - num), ChatMsgType::BY_SERVER); + localChatTab->chatLog( + strprintf(gettext(info.text), num), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } soundManager.playSfx(SoundDB::getSound(message)); } @@ -156,8 +171,11 @@ namespace NotifyManager { case NotifyFlags::STRING: { - localChatTab->chatLog(strprintf(gettext(info.text), - str.c_str()), ChatMsgType::BY_SERVER); + localChatTab->chatLog( + strprintf(gettext(info.text), str.c_str()), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); break; } case NotifyFlags::GUILD_STRING: |