mirror of
https://github.com/anope/anope.git
synced 2026-06-25 17:06: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:
+1
-1
@@ -70,7 +70,7 @@ void Anope::Process(const Anope::string &buffer)
|
||||
MessageSource src(source);
|
||||
|
||||
EventReturn MOD_RESULT;
|
||||
FOREACH_RESULT(I_OnMessage, OnMessage(src, command, params));
|
||||
FOREACH_RESULT(OnMessage, MOD_RESULT, (src, command, params));
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user