summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-27 19:36:37 -0400
committerAdam <Adam@anope.org>2013-05-27 19:36:37 -0400
commit37b3535543b81c3d75c8f62b83d422f0d2fbced0 (patch)
tree8a062415c91d352e4b6bd180cbf238d1f159802d /src/servers.cpp
parentc21e8d9204f9b671177a63d4daa21957bffc1d9f (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/servers.cpp')
-rw-r--r--src/servers.cpp10
1 files changed, 5 insertions, 5 deletions
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())
{