diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 00:39:13 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 00:39:13 +0000 |
commit | 60f91c5c3c313115dc4e92af9d728c493d8bc6aa (patch) | |
tree | 616f6768f108142bca9823b75a16b1109e8d7db0 /src/cmd_kline.cpp | |
parent | f6becbd4e6c07e2e316dc2b52a0616e42102b8f0 (diff) |
More of the same cleanup :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3573 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kline.cpp')
-rw-r--r-- | src/cmd_kline.cpp | 3 |
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 |