diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index 70544b0c8..bdbc12757 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -29,6 +29,9 @@ */ class CoreExport CommandParser { + public: + typedef Commandtable CommandMap; + private: /** Process a command from a user. * @param user The user to parse the command for @@ -45,6 +48,11 @@ class CoreExport CommandParser */ CommandParser(); + /** Get a command name -> Command* map containing all client to server commands + * @return A map of command handlers keyed by command names + */ + const CommandMap& GetCommands() const { return cmdlist; } + /** Calls the handler for a given command. * @param commandname The command to find. This should be in uppercase. * @param parameters Parameter list |