diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 17:26:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 17:26:16 +0000 |
commit | a9b90ecb4329498aba52da6aaa9812e3a70b8e11 (patch) | |
tree | 38053a6bfa07486c6fc5cc46ebddb5e32306014a /src/cmd_privmsg.cpp | |
parent | dab3dc93c177400a749400c61c9253be055b78e3 (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_privmsg.cpp')
-rw-r--r-- | src/cmd_privmsg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index 0e4003c2e..45a1e9dbc 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -101,7 +101,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) int MOD_RESULT = 0; std::string temp = parameters[1]; - FOREACH_RESULT(OnUserPreMessage(user,chan,TYPE_CHANNEL,temp)); + FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,chan,TYPE_CHANNEL,temp)); if (MOD_RESULT) { return; } @@ -114,7 +114,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) } ChanExceptSender(chan, user, "PRIVMSG %s :%s", chan->name, parameters[1]); - FOREACH_MOD OnUserMessage(user,chan,TYPE_CHANNEL,parameters[1]); + FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,chan,TYPE_CHANNEL,parameters[1])); } else { @@ -136,7 +136,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) int MOD_RESULT = 0; std::string temp = parameters[1]; - FOREACH_RESULT(OnUserPreMessage(user,dest,TYPE_USER,temp)); + FOREACH_RESULT(I_OnUserPreMessage,OnUserPreMessage(user,dest,TYPE_USER,temp)); if (MOD_RESULT) { return; } @@ -148,7 +148,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user) WriteTo(user, dest, "PRIVMSG %s :%s", dest->nick, parameters[1]); } - FOREACH_MOD OnUserMessage(user,dest,TYPE_USER,parameters[1]); + FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,dest,TYPE_USER,parameters[1])); } else { |