浏览代码

Roles: Fix rebalancing after linking to hub

Bryan Drewery 6 年之前
父节点
当前提交
9d8fbc9b73
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/botnet.cc

+ 2 - 4
src/botnet.cc

@@ -123,8 +123,7 @@ void addbot(char *who, char *from, char *next, char flag, int vlocalhub, time_t
   else
     ptr2->uplink = findbot(next);
   tands++;
-  if (!ptr2->hub)
-    tand_updates++;
+  tand_updates++;
 
   counter_clear(who);
 }
@@ -337,8 +336,7 @@ void rembot(const char *whoin)
 
   ptr2 = *ptr;
   *ptr = ptr2->next;
-  if (!ptr2->hub)
-    tand_updates++;
+  tand_updates++;
   free(ptr2);
   tands--;