diff options
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r-- | src/commandhandler.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h index 2bcd9e596..a655d8d32 100644 --- a/src/commandhandler.h +++ b/src/commandhandler.h @@ -33,7 +33,7 @@ class ChatTab; extern ChatTab *localChatTab; -typedef std::map<std::string, CommandFuncPtr> CommandsMap; +typedef std::map<std::string, const CommandInfo*> CommandsMap; typedef CommandsMap::const_iterator CommandsMapIter; /** @@ -89,6 +89,12 @@ class CommandHandler final friend class ChatTab; friend class WhisperTab; CommandsMap mCommands; + + private: + void callFunc(const CommandInfo &info, + const std::string &args, + ChatTab *const tab); + }; extern CommandHandler *commandHandler; |