From 37b3535543b81c3d75c8f62b83d422f0d2fbced0 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 May 2013 19:36:37 -0400 Subject: Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.cpp') 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) -- cgit