summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 421c90b93..c3131bda2 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -259,7 +259,7 @@ void Command::Run(CommandSource &source, const Anope::string &message)
source.permission = info.permission;
EventReturn MOD_RESULT;
- FOREACH_RESULT(I_OnPreCommand, OnPreCommand(source, c, params));
+ FOREACH_RESULT(OnPreCommand, MOD_RESULT, (source, c, params));
if (MOD_RESULT == EVENT_STOP)
return;
@@ -279,7 +279,7 @@ void Command::Run(CommandSource &source, const Anope::string &message)
}
c->Execute(source, params);
- FOREACH_MOD(I_OnPostCommand, OnPostCommand(source, c, params));
+ FOREACH_MOD(OnPostCommand, (source, c, params));
}
bool Command::FindCommandFromService(const Anope::string &command_service, BotInfo* &bot, Anope::string &name)