1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06: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
+4 -4
View File
@@ -60,7 +60,7 @@ class ExpireTimer : public Timer
void Tick(time_t) anope_override
{
FOREACH_MOD(I_OnExpireTick, OnExpireTick());
FOREACH_MOD(OnExpireTick, ());
}
};
@@ -70,7 +70,7 @@ void Anope::SaveDatabases()
return;
Log(LOG_DEBUG) << "Saving databases";
FOREACH_MOD(I_OnSaveDatabase, OnSaveDatabase());
FOREACH_MOD(OnSaveDatabase, ());
}
/** The following comes from InspIRCd to get the full path of the Anope executable
@@ -181,11 +181,11 @@ int main(int ac, char **av, char **envp)
if (Anope::Restarting)
{
FOREACH_MOD(I_OnRestart, OnRestart());
FOREACH_MOD(OnRestart, ());
}
else
{
FOREACH_MOD(I_OnShutdown, OnShutdown());
FOREACH_MOD(OnShutdown, ());
}
if (Anope::QuitReason.empty())