summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/chat')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp6
-rw-r--r--src/gui/widgets/tabs/chat/chattab.h4
-rw-r--r--src/gui/widgets/tabs/chat/partytab.cpp6
3 files changed, 10 insertions, 6 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp
index dd2ff9a54..58f8ec019 100644
--- a/src/gui/widgets/tabs/chat/chattab.cpp
+++ b/src/gui/widgets/tabs/chat/chattab.cpp
@@ -562,11 +562,13 @@ void ChatTab::showOnline(const std::string &nick,
if (online == Online_true)
{
// TRANSLATORS: chat message
- chatLog(strprintf(_("%s is now Online."), nick.c_str()));
+ chatLog(strprintf(_("%s is now Online."), nick.c_str()),
+ ChatMsgType::BY_SERVER);
}
else
{
// TRANSLATORS: chat message
- chatLog(strprintf(_("%s is now Offline."), nick.c_str()));
+ chatLog(strprintf(_("%s is now Offline."), nick.c_str()),
+ ChatMsgType::BY_SERVER);
}
}
diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h
index 6eee19b9d..df3c7913f 100644
--- a/src/gui/widgets/tabs/chat/chattab.h
+++ b/src/gui/widgets/tabs/chat/chattab.h
@@ -41,7 +41,7 @@ class ScrollArea;
#define debugMsg(str) \
if (debugChatTab) \
- debugChatTab->chatLog(str);
+ debugChatTab->chatLog(str, ChatMsgType::BY_SERVER);
#define setTabColors(name) \
setTabColor(&getThemeColor(name), \
@@ -80,7 +80,7 @@ class ChatTab notfinal : public Tab
* @param removeColors try remove color if configured
*/
void chatLog(std::string line,
- ChatMsgType::Type own = ChatMsgType::BY_SERVER,
+ ChatMsgType::Type own,
const IgnoreRecord ignoreRecord = IgnoreRecord_false,
const TryRemoveColors tryRemoveColors
= TryRemoveColors_true);
diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp
index 093549139..45f420703 100644
--- a/src/gui/widgets/tabs/chat/partytab.cpp
+++ b/src/gui/widgets/tabs/chat/partytab.cpp
@@ -131,7 +131,8 @@ bool PartyTab::handleCommand(const std::string &restrict type,
Net::PartyShare::NO);
break;
case -1:
- chatLog(strprintf(BOOLEAN_OPTIONS, "item"));
+ chatLog(strprintf(BOOLEAN_OPTIONS, "item"),
+ ChatMsgType::BY_SERVER);
break;
default:
break;
@@ -181,7 +182,8 @@ bool PartyTab::handleCommand(const std::string &restrict type,
Net::PartyShare::NO);
break;
case -1:
- chatLog(strprintf(BOOLEAN_OPTIONS, "exp"));
+ chatLog(strprintf(BOOLEAN_OPTIONS, "exp"),
+ ChatMsgType::BY_SERVER);
break;
default:
break;