summaryrefslogtreecommitdiff
path: root/src/servers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers.c')
-rw-r--r--src/servers.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/servers.c b/src/servers.c
index b820b22e9..037ad2ea1 100644
--- a/src/servers.c
+++ b/src/servers.c
@@ -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);
}