From ee1fc0b63cb7f27df85c43474497b805df6e31f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Dec 2017 19:10:19 +0300 Subject: Remove default parameters from ChatTab::chatLog. --- src/notifymanager.cpp | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'src/notifymanager.cpp') 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: -- cgit v1.2.3-70-g09d2