From 0757a4a495daabf661ac3b7ab79f0a5ee423abe8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 12:18:29 +0000 Subject: mass tidyup, change A LOT of stuff to const char** which was char** (such as parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index f7b8bc53a..18a4a6dbb 100644 --- a/include/modules.h +++ b/include/modules.h @@ -967,7 +967,7 @@ class Module : public Extensible * @param validated True if the command has passed all checks, e.g. it is recognised, has enough parameters, the user has permission to execute it, etc. * @return 1 to block the command, 0 to allow */ - virtual int OnPreCommand(const std::string &command, char **parameters, int pcnt, userrec *user, bool validated); + virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated); /** Called to check if a user who is connecting can now be allowed to register * If any modules return false for this function, the user is held in the waiting @@ -1474,7 +1474,7 @@ class Server : public Extensible * your server in an unstable state! */ - virtual void SendMode(char **parameters, int pcnt, userrec *user); + virtual void SendMode(const char **parameters, int pcnt, userrec *user); /** Sends to all users matching a mode mask * You must specify one or more usermodes as the first parameter. These can be RFC specified modes such as +i, @@ -1550,7 +1550,7 @@ class Server : public Extensible * used for privilage checks, etc. * @return True if the command exists */ - virtual bool CallCommandHandler(const std::string &commandname, char** parameters, int pcnt, userrec* user); + virtual bool CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user); /** This function returns true if the commandname exists, pcnt is equal to or greater than the number * of paramters the command requires, the user specified is allowed to execute the command, AND -- cgit v1.2.3