From 07012a81f523b7f6bd095325ddd2675a3ce06d09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Aug 2014 13:09:30 +0300 Subject: If chat command not found, try find it in input actions. --- src/commandhandler.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/commandhandler.cpp') 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.")); + } } } } -- cgit v1.2.3-70-g09d2