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_invite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_invite.cpp') diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp index 931c684ce..b99f80db4 100644 --- a/src/cmd_invite.cpp +++ b/src/cmd_invite.cpp @@ -84,7 +84,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user) } int MOD_RESULT = 0; - FOREACH_RESULT(OnUserPreInvite(user,u,c)); + FOREACH_RESULT(I_OnUserPreInvite,OnUserPreInvite(user,u,c)); if (MOD_RESULT == 1) { return; } @@ -93,7 +93,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user) u->InviteTo(xname); WriteFrom(u->fd,user,"INVITE %s :%s",u->nick,c->name); WriteServ(user->fd,"341 %s %s %s",user->nick,u->nick,c->name); - FOREACH_MOD OnUserInvite(user,u,c); + FOREACH_MOD(I_OnUserInvite,OnUserInvite(user,u,c)); } else { -- cgit v1.2.3