From 05d41da56882a14b44648c8daed5f50979154c16 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 21:37:33 +0300 Subject: Add basic support for chat channels. --- src/actions/chat.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/actions') 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; } -- cgit v1.2.3-60-g2f50