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/being/localplayer.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/being/localplayer.cpp') diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 94fa39a1f..3eb2a32af 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -924,8 +924,14 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, msg = N_("Unknown problem picking up item."); break; } - if ((localChatTab != nullptr) && config.getBoolValue("showpickupchat")) - localChatTab->chatLog(gettext(msg), ChatMsgType::BY_SERVER); + if (localChatTab != nullptr && + config.getBoolValue("showpickupchat")) + { + localChatTab->chatLog(gettext(msg), + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); + } if ((mMap != nullptr) && config.getBoolValue("showpickupparticle")) { @@ -954,7 +960,9 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, localChatTab->chatLog(strprintf(ngettext("You picked up %d " "[@@%d|%s@@].", "You picked up %d [@@%d|%s@@].", amount), amount, itemInfo.getId(), str.c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } if ((mMap != nullptr) && config.getBoolValue("showpickupparticle")) @@ -2038,7 +2046,8 @@ void LocalPlayer::afkRespond(ChatTab *const tab, const std::string &nick) localChatTab->chatLog(std::string(mName).append( " : ").append(msg), ChatMsgType::ACT_WHISPER, - IgnoreRecord_false); + IgnoreRecord_false, + TryRemoveColors_true); } } else -- cgit v1.2.3-60-g2f50