diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
| commit | c32c3c99a1e1d395c88e901de200c21b9ca1e84f (patch) | |
| tree | e272e1dc395df2947314ff24f0f9ce12b94f8f53 /src/operserv.c | |
| parent | 431918ceacfd5a580d4f28a8ae6077c9bbc44b99 (diff) | |
Made all protocol modules able to be compiled via mostly constifying strings.
Due to the above, also had to constify strings in many other areas.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1202 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/operserv.c')
| -rw-r--r-- | src/operserv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/operserv.c b/src/operserv.c index b501dd02f..d06dd86b9 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -81,8 +81,8 @@ void moduleAddOperServCmds(void) { #ifdef DEBUG_COMMANDS Command *c; #endif - - modules_core_init(OperServCoreNumber, OperServCoreModules); + + modules_core_init(OperServCoreNumber, OperServCoreModules); #ifdef DEBUG_COMMANDS c = createCommand("LISTTIMERS", send_timeout_list, is_services_root, -1,-1,-1,-1,-1); addCoreCommand(OPERSERV,c); @@ -835,7 +835,7 @@ int add_akill(User * u, char *mask, const char *by, const time_t expires, /* Does the user match any AKILLs? */ -int check_akill(char *nick, const char *username, const char *host, +int check_akill(const char *nick, const char *username, const char *host, const char *vhost, const char *ip) { int i; @@ -1052,7 +1052,7 @@ int add_sgline(User * u, char *mask, const char *by, const time_t expires, /* Does the user match any SGLINEs? */ -int check_sgline(char *nick, const char *realname) +int check_sgline(const char *nick, const char *realname) { int i; SXLine *sx; @@ -1240,7 +1240,7 @@ int add_sqline(User * u, char *mask, const char *by, const time_t expires, /* Does the user match any SQLINEs? */ -int check_sqline(char *nick, int nick_change) +int check_sqline(const char *nick, int nick_change) { int i; SXLine *sx; @@ -1436,7 +1436,7 @@ int add_szline(User * u, char *mask, const char *by, const time_t expires, } /* Check and enforce any Zlines that we have */ -int check_szline(char *nick, char *ip) +int check_szline(const char *nick, char *ip) { int i; SXLine *sx; |
