X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommand_parse.h;h=e8240fcf9bf1a57a501947ab39a46e79ae3d6795;hb=f3624af468d769f0cb05cf17cd18111f5faa9ec3;hp=cbcbea2d8382b205eaeeefcb6add4e9bf877e85a;hpb=4381bb63f57d7a542827f2481e8198313e4ff24a;p=user%2Fhenk%2Fcode%2Finspircd.git 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 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.