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/servers.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/servers.cpp') diff --git a/src/servers.cpp b/src/servers.cpp index d8fc84a81..ee4891138 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -118,7 +118,7 @@ Server::Server(Server *up, const Anope::string &sname, unsigned shops, const Ano } } - FOREACH_MOD(I_OnNewServer, OnNewServer(this)); + FOREACH_MOD(OnNewServer, (this)); } Server::~Server() @@ -152,7 +152,7 @@ Server::~Server() void Server::Delete(const Anope::string &reason) { this->quit_reason = reason; - FOREACH_MOD(I_OnServerQuit, OnServerQuit(this)); + FOREACH_MOD(OnServerQuit, (this)); delete this; } @@ -237,7 +237,7 @@ void Server::Sync(bool sync_links) Log(this, "sync") << "is done syncing"; - FOREACH_MOD(I_OnServerSync, OnServerSync(this)); + FOREACH_MOD(OnServerSync, (this)); if (sync_links && !this->links.empty()) { @@ -247,7 +247,7 @@ void Server::Sync(bool sync_links) if (this->GetUplink() && this->GetUplink() == Me) { - FOREACH_MOD(I_OnPreUplinkSync, OnPreUplinkSync(this)); + FOREACH_MOD(OnPreUplinkSync, (this)); for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it) { @@ -258,7 +258,7 @@ void Server::Sync(bool sync_links) IRCD->SendEOB(); Me->Sync(false); - FOREACH_MOD(I_OnUplinkSync, OnUplinkSync(this)); + FOREACH_MOD(OnUplinkSync, (this)); if (!Anope::NoFork && Anope::AtTerm()) { -- cgit