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_topic.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_topic.cpp')
-rw-r--r-- | src/cmd_topic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index 2cb646323..644c9ccc3 100644 --- a/src/cmd_topic.cpp +++ b/src/cmd_topic.cpp @@ -123,7 +123,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user) if (user->fd > -1) { int MOD_RESULT = 0; - FOREACH_RESULT(OnLocalTopicChange(user,Ptr,topic)); + FOREACH_RESULT(I_OnLocalTopicChange,OnLocalTopicChange(user,Ptr,topic)); if (MOD_RESULT) return; } @@ -134,7 +134,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user) WriteChannel(Ptr,user,"TOPIC %s :%s",Ptr->name, Ptr->topic); if (user->fd > -1) { - FOREACH_MOD OnPostLocalTopicChange(user,Ptr,topic); + FOREACH_MOD(I_OnPostLocalTopicChange,OnPostLocalTopicChange(user,Ptr,topic)); } } else |