summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 09:43:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 09:43:31 +0000
commitb70de5aa7840e8b43c9c5bdbeb0146ec1d5ea1a0 (patch)
treea4fac32a9c817e03ebc874f12078adcc31c3261d /src/commands.cpp
parentcc905e149d29a5471bf3dd0b2eb353b3d17e77d4 (diff)
Added parameter to apply_lines to indicate what we want to apply
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2391 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 2c351868c..df02b67c9 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1950,6 +1950,7 @@ void handle_kline(char **parameters, int pcnt, userrec *user)
{
WriteOpers("*** %s added timed K-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1]));
}
+ apply_lines(APPLY_KLINES);
}
else
{
@@ -1963,7 +1964,6 @@ void handle_kline(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"NOTICE %s :*** K-Line %s not found in list, try /stats k.",user->nick,parameters[0]);
}
}
- apply_lines();
}
void handle_eline(char **parameters, int pcnt, userrec *user)
@@ -2014,6 +2014,7 @@ void handle_gline(char **parameters, int pcnt, userrec *user)
{
WriteOpers("*** %s added timed G-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1]));
}
+ apply_lines(APPLY_GLINES);
}
else
{
@@ -2027,7 +2028,6 @@ void handle_gline(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"NOTICE %s :*** G-Line %s not found in list, try /stats g.",user->nick,parameters[0]);
}
}
- apply_lines();
}
void handle_zline(char **parameters, int pcnt, userrec *user)
@@ -2051,6 +2051,7 @@ void handle_zline(char **parameters, int pcnt, userrec *user)
{
WriteOpers("*** %s added timed Z-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1]));
}
+ apply_lines(APPLY_ZLINES);
}
else
{
@@ -2064,7 +2065,6 @@ void handle_zline(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"NOTICE %s :*** Z-Line %s not found in list, try /stats Z.",user->nick,parameters[0]);
}
}
- apply_lines();
}
void handle_qline(char **parameters, int pcnt, userrec *user)
@@ -2083,6 +2083,7 @@ void handle_qline(char **parameters, int pcnt, userrec *user)
{
WriteOpers("*** %s added timed Q-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1]));
}
+ apply_lines(APPLY_QLINES);
}
else
{
@@ -2096,7 +2097,6 @@ void handle_qline(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"NOTICE %s :*** Q-Line %s not found in list, try /stats k.",user->nick,parameters[0]);
}
}
- apply_lines();
}