summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 967f6d65d..4675ddd22 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -55,7 +55,12 @@ void CommandHandler::handleCommand(const std::string &command,
args = trim(args);
const CommandsMapIter it = mCommands.find(type);
if (it != mCommands.end())
+ {
((*it).second)(args, tab);
+ }
else if (!tab->handleCommand(type, args))
+ {
+ // TRANSLATORS: chat commands handling message
tab->chatLog(_("Unknown command."));
+ }
}