1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 08:23:13 +02:00

Use the source's sync state and not mine when processing sjoins to determine whether or not to sync the channel on creation, instead sync it when the server syncs.

This commit is contained in:
Adam
2013-11-16 09:38:13 -05:00
parent 332fd23927
commit 51a9f64adb
3 changed files with 14 additions and 7 deletions
+11 -5
View File
@@ -257,16 +257,22 @@ void Server::Sync(bool sync_links)
this->links[i]->Sync(true);
}
if (this->GetUplink() && this->GetUplink() == Me)
bool me = this->GetUplink() && this->GetUplink() == Me;
if (me)
{
FOREACH_MOD(OnPreUplinkSync, (this));
}
for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it)
{
Channel *c = it->second;
for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it)
{
Channel *c = it->second;
if (c->syncing)
c->Sync();
}
}
if (me)
{
IRCD->SendEOB();
Me->Sync(false);