diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.h | 12 | ||||
-rw-r--r-- | src/gui/widgets/tabs/socialguildtab.h | 8 | ||||
-rw-r--r-- | src/gui/widgets/tabs/socialpartytab.h | 8 |
4 files changed, 26 insertions, 10 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 diff --git a/src/gui/widgets/tabs/socialguildtab.h b/src/gui/widgets/tabs/socialguildtab.h index 8652a54fe..b2ea74d10 100644 --- a/src/gui/widgets/tabs/socialguildtab.h +++ b/src/gui/widgets/tabs/socialguildtab.h @@ -86,7 +86,9 @@ class SocialGuildTab final : public SocialTab, _("Invited user %s to guild %s."), name.c_str(), mGuild->getName().c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } mInviteDialog = nullptr; } @@ -103,7 +105,9 @@ class SocialGuildTab final : public SocialTab, // TRANSLATORS: chat message _("Guild %s quit requested."), mGuild->getName().c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } mConfirmDialog = nullptr; } diff --git a/src/gui/widgets/tabs/socialpartytab.h b/src/gui/widgets/tabs/socialpartytab.h index d7f22c1f7..d3ed6d9d8 100644 --- a/src/gui/widgets/tabs/socialpartytab.h +++ b/src/gui/widgets/tabs/socialpartytab.h @@ -87,7 +87,9 @@ class SocialPartyTab final : public SocialTab, // TRANSLATORS: chat message _("Invited user %s to party."), name.c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } mInviteDialog = nullptr; } @@ -104,7 +106,9 @@ class SocialPartyTab final : public SocialTab, // TRANSLATORS: tab in social window _("Party %s quit requested."), mParty->getName().c_str()), - ChatMsgType::BY_SERVER); + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } mConfirmDialog = nullptr; } |