diff options
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index b594d8bda..0cf4f803c 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -107,11 +107,16 @@ void CommandHandler::callFunc(const CommandInfo &info, const std::string &args, ChatTab *const tab) { - const CommandFuncPtr func = info.func; + const ActionFuncPtr func = info.func; if (func) - func(args, tab); + { + InputEvent evt(args, tab); + func(evt); + } else + { inputManager.executeAction(info.actionId); + } } void CommandHandler::invokeCommand(const int type) |