summaryrefslogtreecommitdiff
path: root/src/cmd_gline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 17:26:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 17:26:16 +0000
commita9b90ecb4329498aba52da6aaa9812e3a70b8e11 (patch)
tree38053a6bfa07486c6fc5cc46ebddb5e32306014a /src/cmd_gline.cpp
parentdab3dc93c177400a749400c61c9253be055b78e3 (diff)
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
Diffstat (limited to 'src/cmd_gline.cpp')
-rw-r--r--src/cmd_gline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp
index 35cf82d88..f3d8ee170 100644
--- a/src/cmd_gline.cpp
+++ b/src/cmd_gline.cpp
@@ -52,7 +52,7 @@ void cmd_gline::Handle (char **parameters, int pcnt, userrec *user)
if (host_matches_everyone(parameters[0],user))
return;
add_gline(duration(parameters[1]),user->nick,parameters[2],parameters[0]);
- FOREACH_MOD OnAddGLine(duration(parameters[1]), user, parameters[2], parameters[0]);
+ FOREACH_MOD(I_OnAddGLine,OnAddGLine(duration(parameters[1]), user, parameters[2], parameters[0]));
if (!duration(parameters[1]))
{
WriteOpers("*** %s added permenant G-line for %s.",user->nick,parameters[0]);
@@ -67,7 +67,7 @@ void cmd_gline::Handle (char **parameters, int pcnt, userrec *user)
{
if (del_gline(parameters[0]))
{
- FOREACH_MOD OnDelGLine(user, parameters[0]);
+ FOREACH_MOD(I_OnDelGLine,OnDelGLine(user, parameters[0]));
WriteOpers("*** %s Removed G-line on %s.",user->nick,parameters[0]);
}
else