From a9b90ecb4329498aba52da6aaa9812e3a70b8e11 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 26 Dec 2005 17:26:16 +0000 Subject: Adding hook type checking to event calls to speed them up git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2653 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_kline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_kline.cpp') diff --git a/src/cmd_kline.cpp b/src/cmd_kline.cpp index a14c2bf99..32dd865fe 100644 --- a/src/cmd_kline.cpp +++ b/src/cmd_kline.cpp @@ -69,7 +69,7 @@ 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 OnAddKLine(duration(parameters[1]), user, 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]); @@ -84,7 +84,7 @@ void cmd_kline::Handle (char **parameters, int pcnt, userrec *user) { if (del_kline(parameters[0])) { - FOREACH_MOD OnDelKLine(user, parameters[0]); + FOREACH_MOD(I_OnDelKLine,OnDelKLine(user, parameters[0])); WriteOpers("*** %s Removed K-line on %s.",user->nick,parameters[0]); } else -- cgit v1.2.3