summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-26 00:58:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-26 00:58:31 +0000
commitb6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 (patch)
treea4968276af8ce4ab6d5281af8355cbab96b67934 /src/mode.cpp
parent566a3fe5ca4cf41e17b529a7c288aeecf6dda8de (diff)
Major code tidyup (-W) - expect a few belches
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1190 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp22
1 files changed, 8 insertions, 14 deletions
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;