diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 21:37:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 21:37:33 +0300 |
commit | 05d41da56882a14b44648c8daed5f50979154c16 (patch) | |
tree | 49a5cc44067e8b60dc0f2273c1be82b2585b61e0 /src/actions | |
parent | 77e6c8639ae17554874d2de9fbdca35a99e51765 (diff) | |
download | manaverse-05d41da56882a14b44648c8daed5f50979154c16.tar.gz manaverse-05d41da56882a14b44648c8daed5f50979154c16.tar.bz2 manaverse-05d41da56882a14b44648c8daed5f50979154c16.tar.xz manaverse-05d41da56882a14b44648c8daed5f50979154c16.zip |
Add basic support for chat channels.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/chat.cpp | 11 |
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; } |