Просмотр исходного кода

* Final fixes for yellow hubs in bottree

svn: 1566
Bryan Drewery 21 лет назад
Родитель
Сommit
9dc25aedc5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/botnet.c

+ 2 - 2
src/botnet.c

@@ -609,7 +609,7 @@ void tell_bottree(int idx)
 
   if (bot_hublevel(conf.bot->u) < 999)
     color_str = (char *) YELLOW(idx);
-  if (localhub)
+  else if (localhub)
     color_str = (char *) RED(idx);
   else
     color_str = (char *) NULL;
@@ -699,7 +699,7 @@ void tell_bottree(int idx)
        
                 if (botu && bot_hublevel(botu) < 999)
                   color_str = (char *) YELLOW(idx);
-                if (botu && bot->localhub)
+                else if (botu && bot->localhub)
                   color_str = (char *) RED(idx);
                 else
                   color_str = (char *) NULL;