diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-23 13:09:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-23 13:09:30 +0300 |
commit | 07012a81f523b7f6bd095325ddd2675a3ce06d09 (patch) | |
tree | 839921e0f2b3143ef0f5dcdf4cfc6969e1e32154 /src/commandhandler.cpp | |
parent | 028638516b8a19edfe512309708012003e68b5c5 (diff) | |
download | manaverse-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.gz manaverse-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.bz2 manaverse-07012a81f523b7f6bd095325ddd2675a3ce06d09.tar.xz manaverse-07012a81f523b7f6bd095325ddd2675a3ce06d09.zip |
If chat command not found, try find it in input actions.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 9 |
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.")); + } } } } |