Explorar o código

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

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
1748579766
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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;
   /* Send to any other sharebots */
-  if (conf.bot->hub)
+  if (conf.bot->hub || conf.bot->localhub)
     hook_read_userfile();
-  else {
+
+  if (!conf.bot->hub) {
     /* Our hostmask may have been updated on connect, but the new userfile may not have it. */
     check_hostmask();
   }