1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 21:46: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
+5 -5
View File
@@ -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())
{