diff options
author | Adam <Adam@anope.org> | 2013-05-27 19:36:37 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-27 19:36:37 -0400 |
commit | 37b3535543b81c3d75c8f62b83d422f0d2fbced0 (patch) | |
tree | 8a062415c91d352e4b6bd180cbf238d1f159802d /src/main.cpp | |
parent | c21e8d9204f9b671177a63d4daa21957bffc1d9f (diff) |
Initially attach all modules to all events, and detach them as the events are run if they are not implemented per module
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 576df28a6..d799d9a21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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()) |