diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 18:12:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-17 18:12:29 +0000 |
commit | f42aa995415c14eb5511b896df74aea78602dc63 (patch) | |
tree | 93f60f85c926e625aca04f815064fc643ea4d466 /include/command_parse.h | |
parent | 9a7826b0e864e1f4cb1cfa024b0d6e480af753d3 (diff) |
Comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7373 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/command_parse.h')
-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 cbcbea2d8..e8240fcf9 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -19,8 +19,12 @@ #include "ctables.h" #include "typedefs.h" +/** Required forward declaration + */ class InspIRCd; +/** A list of dll/so files containing the command handlers for the core + */ typedef std::map<std::string, void*> SharedObjectList; /** This class handles command management and parsing. @@ -111,6 +115,10 @@ class CoreExport CommandParser : public classbase */ CmdResult CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user); + /** Get the handler function for a command. + * @param commandname The command required. Always use uppercase for this parameter. + * @return a pointer to the command handler, or NULL + */ command_t* GetHandler(const std::string &commandname); /** This function returns true if a command is valid with the given number of parameters and user. |