Make UWorld servers work when not directly connected to them. Fix a
[ircu2.10.12-pk.git] / ircd / m_server.c
index 6efe6bd37c7074fdb98dfdc97c30c78f35f56ab8..934fd3accb643081762d35eaa4cee414a33ff37f 100644 (file)
@@ -612,6 +612,9 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   cli_serv(cptr)->ghost = ghost;
   SetServerYXX(cptr, cptr, parv[6]);
 
+  /* Attach any necessary UWorld config items. */
+  attach_confs_byhost(cptr, host, CONF_UWORLD);
+
   if (*parv[7] == '+') {
     for (ch = parv[7] + 1; *ch; ch++)
       switch (*ch) {
@@ -733,6 +736,9 @@ int ms_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
      for numeric nicks ! */
   SetServerYXX(cptr, acptr, parv[6]);
 
+  /* Attach any necessary UWorld config items. */
+  attach_confs_byhost(cptr, host, CONF_UWORLD);
+
   if (*parv[7] == '+') {
     for (ch = parv[7] + 1; *ch; ch++)
       switch (*ch) {