]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Alter SetModeParam to take const char* to save on casts, notice a load of modules...
[user/henk/code/inspircd.git] / include / command_parse.h
index 76e859b98b749e76c30a7ae6cf36a9f520d3e6bf..310427036cec97d17ea7b94baebae0d7334a72a2 100644 (file)
@@ -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:
  *                <brain@chatspike.net>
  *                <Craig@chatspike.net>
@@ -34,8 +34,8 @@ class CommandParser
        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);