summaryrefslogtreecommitdiff
path: root/src/cmd_kline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_kline.cpp')
-rw-r--r--src/cmd_kline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_kline.cpp b/src/cmd_kline.cpp
index 370c3a45f..9c840b469 100644
--- a/src/cmd_kline.cpp
+++ b/src/cmd_kline.cpp
@@ -68,8 +68,10 @@ void cmd_kline::Handle (char **parameters, int pcnt, userrec *user)
{
if (host_matches_everyone(parameters[0],user))
return;
+
add_kline(duration(parameters[1]),user->nick,parameters[2],parameters[0]);
FOREACH_MOD(I_OnAddKLine,OnAddKLine(duration(parameters[1]), user, parameters[2], parameters[0]));
+
if (!duration(parameters[1]))
{
WriteOpers("*** %s added permenant K-line for %s.",user->nick,parameters[0]);
@@ -78,6 +80,7 @@ void cmd_kline::Handle (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