X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommand_parse.h;h=310427036cec97d17ea7b94baebae0d7334a72a2;hb=fc9e00f49299cb3b402406b5f185d5f4af1e9780;hp=5709f5c6a549d559d1fda6430959ec77de6c6162;hpb=18c757067c0a9e5c1aa81496dca8428a0bf3635f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/command_parse.h b/include/command_parse.h index 5709f5c6a..310427036 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -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);