summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 0cf4f803c..daf65b6a8 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -95,10 +95,13 @@ void CommandHandler::invokeCommand(const std::string &type,
}
else if (!tab->handleCommand(type, args))
{
- if (warn)
+ if (!inputManager.executeChatCommand(type, args, tab))
{
- // TRANSLATORS: chat commands handling message
- tab->chatLog(_("Unknown command."));
+ if (warn)
+ {
+ // TRANSLATORS: chat commands handling message
+ tab->chatLog(_("Unknown command."));
+ }
}
}
}