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_kill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_kill.cpp') diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index 36b348c56..d79adc901 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -56,7 +56,7 @@ void cmd_kill::Handle (char **parameters, int pcnt, userrec *user) { log(DEBUG,"into kill mechanism"); int MOD_RESULT = 0; - FOREACH_RESULT(OnKill(user,u,parameters[1])); + FOREACH_RESULT(I_OnKill,OnKill(user,u,parameters[1])); if (MOD_RESULT) { log(DEBUG,"A module prevented the kill with result %d",MOD_RESULT); return; @@ -69,7 +69,7 @@ void cmd_kill::Handle (char **parameters, int pcnt, userrec *user) snprintf(killreason,MAXBUF,"[%s] Killed (%s (%s))",Config->ServerName,user->nick,parameters[1]); WriteCommonExcept(u,"QUIT :%s",killreason); - FOREACH_MOD OnRemoteKill(user,u,killreason); + FOREACH_MOD(I_OnRemoteKill,OnRemoteKill(user,u,killreason)); user_hash::iterator iter = clientlist.find(u->nick); if (iter != clientlist.end()) -- cgit v1.2.3