mirror of
https://github.com/anope/anope.git
synced 2026-06-27 19:46:38 +02:00
Also make use of synched state to introduce pseudoclients instead of blindly introducing them on connect.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2443 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
-11
@@ -642,17 +642,6 @@ int init_secondary(int ac, char **av)
|
||||
strerror(openlog_errno));
|
||||
}
|
||||
|
||||
/* Bring in our pseudo-clients */
|
||||
introduce_user(NULL);
|
||||
|
||||
/* And hybrid needs Global joined in the logchan */
|
||||
if (logchan && ircd->join2msg) {
|
||||
/* XXX might desync */
|
||||
ircdproto->SendJoin(findbot(s_GlobalNoticer), LogChannel, time(NULL));
|
||||
}
|
||||
|
||||
ircdproto->SendEOB();
|
||||
|
||||
/* Success! */
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -587,7 +587,23 @@ void finish_sync(Server * serv, int sync_links)
|
||||
}
|
||||
} while (s);
|
||||
|
||||
if (serv == serv_uplink)
|
||||
{
|
||||
/* Bring in our pseudo-clients */
|
||||
introduce_user(NULL);
|
||||
|
||||
/* And hybrid needs Global joined in the logchan */
|
||||
if (logchan && ircd->join2msg) {
|
||||
/* XXX might desync */
|
||||
ircdproto->SendJoin(findbot(s_GlobalNoticer), LogChannel, time(NULL));
|
||||
}
|
||||
|
||||
ircdproto->SendEOB();
|
||||
}
|
||||
|
||||
/* Do some general stuff which should only be done once */
|
||||
// XXX: this doesn't actually match the description. finish_sync(), depending on the ircd, can be called multiple times
|
||||
// Perhaps this belongs in the above if?
|
||||
restore_unsynced_topics();
|
||||
alog("Server %s is done syncing", serv->name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user