소스 검색

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--;