1
0
Эх сурвалжийг харах

* Final fixes for yellow hubs in bottree

svn: 1566
Bryan Drewery 21 жил өмнө
parent
commit
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;