summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-23 13:09:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-23 13:09:30 +0300
commit07012a81f523b7f6bd095325ddd2675a3ce06d09 (patch)
tree839921e0f2b3143ef0f5dcdf4cfc6969e1e32154 /src/commandhandler.cpp
parent028638516b8a19edfe512309708012003e68b5c5 (diff)
downloadmv-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.gz
mv-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.bz2
mv-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.xz
mv-07012a81f523b7f6bd095325ddd2675a3ce06d09.zip
If chat command not found, try find it in input actions.
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."));
+ }
}
}
}