]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
irc::tokenstream is a token parser which using std::string and std::vector builds...
[user/henk/code/inspircd.git] / include / command_parse.h
index 5709f5c6a549d559d1fda6430959ec77de6c6162..838915dff9a9fbbd01ecb238ad679d9101fe2411 100644 (file)
@@ -24,7 +24,7 @@
 #include "ctables.h"
 #include "typedefs.h"
  
-class CommandParser
+class CommandParser : public classbase
 {
  private:
        int ProcessParameters(char **command_p,char *parameters);
@@ -34,8 +34,8 @@ class CommandParser
        command_table cmdlist;
 
        CommandParser();
-       bool CallHandler(std::string &commandname,char **parameters, int pcnt, userrec *user);
-       bool IsValidCommand(std::string &commandname, int pcnt, userrec * user);
+       bool CallHandler(const std::string &commandname,char **parameters, int pcnt, userrec *user);
+       bool IsValidCommand(const std::string &commandname, int pcnt, userrec * user);
        int LoopCall(command_t *fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
        void ProcessBuffer(const char* cmdbuf,userrec *user);
        bool RemoveCommands(const char* source);