浏览代码

* Share out global set changes from localhubs

Bryan Drewery 17 年之前
父节点
当前提交
058e887ea7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/set.c

+ 1 - 1
src/set.c

@@ -625,7 +625,7 @@ void var_userfile_share_line(char *line, int idx, bool share)
   set_noshare = 1;
   set_noshare = 1;
   var_set(var, NULL, line);
   var_set(var, NULL, line);
   /* leaf bots don't need to bother attempting to share; there are no bots linked to us! */
   /* leaf bots don't need to bother attempting to share; there are no bots linked to us! */
-  if (share && conf.bot->hub)
+  if (share && (conf.bot->hub || conf.bot->localhub))
     botnet_send_var_broad(idx, var);
     botnet_send_var_broad(idx, var);
   set_noshare = 0;
   set_noshare = 0;
 }
 }