From b6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 26 Apr 2005 00:58:31 +0000 Subject: Major code tidyup (-W) - expect a few belches git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 6f06027e4..b5e444fc3 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -84,7 +84,6 @@ extern time_t TIME; char* give_ops(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -148,7 +147,6 @@ char* give_ops(userrec *user,char *dest,chanrec *chan,int status) char* give_hops(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -205,7 +203,6 @@ char* give_hops(userrec *user,char *dest,chanrec *chan,int status) char* give_voice(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -262,7 +259,6 @@ char* give_voice(userrec *user,char *dest,chanrec *chan,int status) char* take_ops(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -322,7 +318,6 @@ char* take_ops(userrec *user,char *dest,chanrec *chan,int status) char* take_hops(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -379,7 +374,6 @@ char* take_hops(userrec *user,char *dest,chanrec *chan,int status) char* take_voice(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; - int i; if ((!user) || (!dest) || (!chan)) { @@ -1181,7 +1175,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user) { chanrec* Ptr; userrec* dest; - int can_change,i; + int can_change; int direction = 1; char outpars[MAXBUF]; @@ -1356,7 +1350,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user) z = strlen(b)-1; if ((b[z] == '-') || (b[z] == '+')) - b[z] == '\0'; + b[z] = '\0'; if ((!strcmp(b,"+")) || (!strcmp(b,"-"))) return; @@ -1459,7 +1453,7 @@ void server_mode(char **parameters, int pcnt, userrec *user) { chanrec* Ptr; userrec* dest; - int can_change,i; + int can_change; int direction = 1; char outpars[MAXBUF]; @@ -1603,7 +1597,7 @@ void server_mode(char **parameters, int pcnt, userrec *user) z = strlen(b)-1; if ((b[z] == '-') || (b[z] == '+')) - b[z] == '\0'; + b[z] = '\0'; if ((!strcmp(b,"+")) || (!strcmp(b,"-"))) return; @@ -1645,7 +1639,7 @@ void merge_mode(char **parameters, int pcnt) { chanrec* Ptr; userrec* dest; - int can_change,i; + int can_change; int direction = 1; char outpars[MAXBUF]; @@ -1789,7 +1783,7 @@ void merge_mode(char **parameters, int pcnt) z = strlen(b)-1; if ((b[z] == '-') || (b[z] == '+')) - b[z] == '\0'; + b[z] = '\0'; if ((!strcmp(b,"+")) || (!strcmp(b,"-"))) return; @@ -1823,7 +1817,7 @@ void merge_mode2(char **parameters, int pcnt, userrec* user) { chanrec* Ptr; userrec* dest; - int can_change,i; + int can_change; int direction = 1; char outpars[MAXBUF]; @@ -1974,7 +1968,7 @@ void merge_mode2(char **parameters, int pcnt, userrec* user) z = strlen(b)-1; if ((b[z] == '-') || (b[z] == '+')) - b[z] == '\0'; + b[z] = '\0'; if ((!strcmp(b,"+")) || (!strcmp(b,"-"))) return; -- cgit v1.2.3