summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c11
-rw-r--r--src/servers.c16
2 files changed, 16 insertions, 11 deletions
diff --git a/src/init.c b/src/init.c
index 8931fd6f4..4c87ae5c4 100644
--- a/src/init.c
+++ b/src/init.c
@@ -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;
}
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);
}