Przeglądaj źródła

* Localhub: Share new userfile with child bots once it has been (re)loaded from hub

Bryan Drewery 16 lat temu
rodzic
commit
1748579766
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/mod/share.mod/share.c

+ 3 - 2
src/mod/share.mod/share.c

@@ -1060,9 +1060,10 @@ share_endstartup(int idx, char *par)
 {
 {
   dcc[idx].status &= ~STAT_GETTING;
   dcc[idx].status &= ~STAT_GETTING;
   /* Send to any other sharebots */
   /* Send to any other sharebots */
-  if (conf.bot->hub)
+  if (conf.bot->hub || conf.bot->localhub)
     hook_read_userfile();
     hook_read_userfile();
-  else {
+
+  if (!conf.bot->hub) {
     /* Our hostmask may have been updated on connect, but the new userfile may not have it. */
     /* Our hostmask may have been updated on connect, but the new userfile may not have it. */
     check_hostmask();
     check_hostmask();
   }
   }