summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-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;
}