1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 00:26:37 +02:00

Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module

This commit is contained in:
Adam
2013-05-27 19:36:37 -04:00
parent c21e8d9204
commit 37b3535543
120 changed files with 440 additions and 672 deletions
+2 -2
View File
@@ -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)