summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-24 22:31:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-24 22:31:47 +0300
commit7da1fab7ee72517bf2359a184d544734e92be6a9 (patch)
tree02b48427edcbdf55924d65d4dfe91beaff8c2b0c /src/actions/chat.cpp
parent7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e (diff)
downloadplus-7da1fab7ee72517bf2359a184d544734e92be6a9.tar.gz
plus-7da1fab7ee72517bf2359a184d544734e92be6a9.tar.bz2
plus-7da1fab7ee72517bf2359a184d544734e92be6a9.tar.xz
plus-7da1fab7ee72517bf2359a184d544734e92be6a9.zip
From ChatTab::chatLog removed default parameter for message owner type.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index 974cc057f..125a9b94c 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -408,7 +408,8 @@ impHandler(toggle)
{
// TRANSLATORS: message from toggle chat command
event.tab->chatLog(chatWindow->getReturnTogglesChat() ?
- _("Return toggles chat.") : _("Message closes chat."));
+ _("Return toggles chat.") : _("Message closes chat."),
+ ChatMsgType::BY_SERVER);
}
return true;
}
@@ -419,7 +420,8 @@ impHandler(toggle)
if (event.tab)
{
// TRANSLATORS: message from toggle chat command
- event.tab->chatLog(_("Return now toggles chat."));
+ event.tab->chatLog(_("Return now toggles chat."),
+ ChatMsgType::BY_SERVER);
}
if (chatWindow)
chatWindow->setReturnTogglesChat(true);
@@ -428,14 +430,18 @@ impHandler(toggle)
if (event.tab)
{
// TRANSLATORS: message from toggle chat command
- event.tab->chatLog(_("Message now closes chat."));
+ event.tab->chatLog(_("Message now closes chat."),
+ ChatMsgType::BY_SERVER);
}
if (chatWindow)
chatWindow->setReturnTogglesChat(false);
return true;
case -1:
if (event.tab)
- event.tab->chatLog(strprintf(BOOLEAN_OPTIONS, "toggle"));
+ {
+ event.tab->chatLog(strprintf(BOOLEAN_OPTIONS, "toggle"),
+ ChatMsgType::BY_SERVER);
+ }
return true;
default:
return true;