summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-12 21:37:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-12 21:37:33 +0300
commit05d41da56882a14b44648c8daed5f50979154c16 (patch)
tree49a5cc44067e8b60dc0f2273c1be82b2585b61e0 /src/actions/chat.cpp
parent77e6c8639ae17554874d2de9fbdca35a99e51765 (diff)
downloadmv-05d41da56882a14b44648c8daed5f50979154c16.tar.gz
mv-05d41da56882a14b44648c8daed5f50979154c16.tar.bz2
mv-05d41da56882a14b44648c8daed5f50979154c16.tar.xz
mv-05d41da56882a14b44648c8daed5f50979154c16.zip
Add basic support for chat channels.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index d838aac06..379d7d49c 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -223,9 +223,10 @@ impHandler(msg)
impHandler(query)
{
+ const std::string &args = event.args;
if (chatWindow)
{
- if (chatWindow->addWhisperTab(event.args, true))
+ if (chatWindow->addChatTab(args, true))
{
chatWindow->saveState();
return true;
@@ -234,10 +235,10 @@ impHandler(query)
if (event.tab)
{
- // TRANSLATORS: new whisper query
- event.tab->chatLog(strprintf(_("Cannot create a whisper tab for nick "
- "\"%s\"! It either already exists, or is you."),
- event.args.c_str()), ChatMsgType::BY_SERVER);
+ // TRANSLATORS: new whisper or channel query
+ event.tab->chatLog(strprintf(_("Cannot create a whisper tab "
+ "\"%s\"! It either already exists."),
+ args.c_str()), ChatMsgType::BY_SERVER);
}
return true;
}