]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Fix this so it works, passes test case. Provide a method to query for a bit and to...
[user/henk/code/inspircd.git] / include / command_parse.h
index 40c3425fbe3dfc0e139f57c13d10e61152aa4d4a..d7c0c4ac15c59ff35abf5ed01798f8b82cb7853c 100644 (file)
@@ -38,6 +38,10 @@ class CommandParser : public classbase
         */
        InspIRCd* ServerInstance;
 
+       /** Parameter buffer
+        */
+       std::vector<std::string> para;
+
        /** Process a parameter string into a list of items
         * @param command_p The output list of items
         * @param parameters The input string
@@ -104,6 +108,8 @@ class CommandParser : public classbase
         */
        CmdResult CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user);
 
+       command_t* GetHandler(const std::string &commandname);
+
        /** This function returns true if a command is valid with the given number of parameters and user.
         * @param commandname The command name to check
         * @param pcnt The parameter count