diff options
Diffstat (limited to 'src/commands/cmd_kline.cpp')
-rw-r--r-- | src/commands/cmd_kline.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands/cmd_kline.cpp b/src/commands/cmd_kline.cpp index 5edb414ea..521159790 100644 --- a/src/commands/cmd_kline.cpp +++ b/src/commands/cmd_kline.cpp @@ -44,14 +44,11 @@ CmdResult CommandKline::Handle (const char** parameters, int pcnt, User *user) long duration = ServerInstance->Duration(parameters[1]); if (ServerInstance->XLines->add_kline(duration,user->nick,parameters[2],parameters[0])) { - int to_apply = APPLY_KLINES; - FOREACH_MOD(I_OnAddKLine,OnAddKLine(duration, user, parameters[2], parameters[0])); if (!duration) { ServerInstance->SNO->WriteToSnoMask('x',"%s added permanent K-line for %s.",user->nick,parameters[0]); - to_apply |= APPLY_PERM_ONLY; } else { @@ -60,7 +57,7 @@ CmdResult CommandKline::Handle (const char** parameters, int pcnt, User *user) ServerInstance->TimeString(c_requires_crap).c_str()); } - ServerInstance->XLines->apply_lines(to_apply); + ServerInstance->XLines->apply_lines(); } else { |