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

* Fixed a small cosmetic error with displaying bot info in whois.

svn: 2225
Bryan Drewery 21 лет назад
Родитель
Сommit
b4572272b9
2 измененных файлов с 7 добавлено и 5 удалено
  1. 1 0
      doc/UPDATES
  2. 6 5
      src/userent.c

+ 1 - 0
doc/UPDATES

@@ -21,6 +21,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed 'chanset *' not working.
 * Fixed 'chanset *' not working.
 * Fixed bot's not being able to link when the botnick case did not match (userlist vs binary -C).
 * Fixed bot's not being able to link when the botnick case did not match (userlist vs binary -C).
 * cmd_nopass when given any argument will give random passes to users with no password. (#114)
 * cmd_nopass when given any argument will give random passes to users with no password. (#114)
+* Fixed a small cosmetic error with displaying bot info in whois.
 
 
 1.2.3
 1.2.3
 
 

+ 6 - 5
src/userent.c

@@ -815,12 +815,13 @@ static void botaddr_display(int idx, struct user_entry *e, struct userrec *u)
     if (glob_admin(fr)) {
     if (glob_admin(fr)) {
       register struct bot_addr *bi = (struct bot_addr *) e->u.extra;
       register struct bot_addr *bi = (struct bot_addr *) e->u.extra;
 
 
-      if (bi->address && bi->hublevel && bi->hublevel != 0) {
-        dprintf(idx, "  ADDRESS: %.70s\n", bi->address);
-        dprintf(idx, "     port: %d\n", bi->telnet_port);
-      }
-      if (bi->hublevel && bi->hublevel != 0)
+      if (bi->hublevel && bi->hublevel != 999) {
+        if (bi->address) {
+          dprintf(idx, "  ADDRESS: %.70s\n", bi->address);
+          dprintf(idx, "     port: %d\n", bi->telnet_port);
+        }
         dprintf(idx, "  HUBLEVEL: %d\n", bi->hublevel);
         dprintf(idx, "  HUBLEVEL: %d\n", bi->hublevel);
+      }
       if (bi->uplink && bi->uplink[0])
       if (bi->uplink && bi->uplink[0])
         dprintf(idx, "  UPLINK: %s\n", bi->uplink);
         dprintf(idx, "  UPLINK: %s\n", bi->uplink);
     }
     }