]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Documented all of the functions in a basic manner here. More detail to follow
[user/henk/code/inspircd.git] / include / command_parse.h
index 800f2beeb9168b72d03220be8d500d44eb2a8115..d00cdd05857ab7eb0c9d4e2b290018cd8aa8a148 100644 (file)
 #include "users.h"
 #include "ctables.h"
 #include "typedefs.h"
+
+class InspIRCd;
+
 class CommandParser : public classbase
 {
  private:
+       InspIRCd* ServerInstance;
+
        int ProcessParameters(char **command_p,char *parameters);
        void ProcessCommand(userrec *user, std::string &cmd);
        void SetupCommandTable();
  public:
        command_table cmdlist;
 
-       CommandParser();
+       CommandParser(InspIRCd* Instance);
        bool CallHandler(const std::string &commandname,const char** parameters, int pcnt, userrec *user);
        bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user);
        int LoopCall(userrec* user, command_t* CommandObj, const char** parameters, int pcnt, unsigned int splithere, unsigned int extra);