X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommand_parse.h;h=310427036cec97d17ea7b94baebae0d7334a72a2;hb=fc9e00f49299cb3b402406b5f185d5f4af1e9780;hp=d667263799692b12e092a28e769a414ed401791d;hpb=293df6a8b55e89c127e60e92711ef0ef1027bff8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/command_parse.h b/include/command_parse.h index d66726379..310427036 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: * * @@ -27,15 +27,15 @@ class CommandParser { private: - int CommandParser::ProcessParameters(char **command_p,char *parameters); - void CommandParser::ProcessCommand(userrec *user, char* cmd); + int ProcessParameters(char **command_p,char *parameters); + void ProcessCommand(userrec *user, char* cmd); void SetupCommandTable(); public: command_table cmdlist; CommandParser(); - void 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);