X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommand_parse.h;h=310427036cec97d17ea7b94baebae0d7334a72a2;hb=49ef1162a51906e7444bb7e38736bd816c317db6;hp=b199123ee608310608ae0fbc78b604bac5bffe60;hpb=ec126582ac8a9c63adb9fa9d47033ef0511ec4e3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/command_parse.h b/include/command_parse.h index b199123ee..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,19 +27,19 @@ 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); - int LoopCall(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins); + 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); - bool CreateCommand(char* cmd, handlerfunc f, char flags, int minparams,char* source); + bool CreateCommand(command_t *f); }; #endif