Procházet zdrojové kódy

* cmd_botcmd ? was not targetting leafs only, fixed.

svn: 552
Bryan Drewery před 22 roky
rodič
revize
b1407afd1c
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -8,6 +8,7 @@ This is a summary of ChangeLog basically.
 5.msg_op now shows OP before STATS log.
 5.msg_op now shows OP before STATS log.
 6.Fixed a cosmetic error in cmd_secpass.
 6.Fixed a cosmetic error in cmd_secpass.
 7.Bots will now relink if they get a corrupt userfile.
 7.Bots will now relink if they get a corrupt userfile.
+8.cmd_botcmd ? was not targetting leafs only, fixed.
 
 
 1.0.14
 1.0.14
 1.Fixed order of log/info for cmd_whoami.
 1.Fixed order of log/info for cmd_whoami.

+ 1 - 1
src/cmds.c

@@ -1563,7 +1563,7 @@ static void cmd_botcmd(struct userrec *u, int idx, char *par)
   }
   }
   if (!strcmp(botm, "?")) {
   if (!strcmp(botm, "?")) {
     for (tbot = tandbot; tbot; tbot = tbot->next) {
     for (tbot = tandbot; tbot; tbot = tbot->next) {
-      if (bot_hublevel(get_user_by_handle(userlist, tbot->bot)))
+      if (bot_hublevel(get_user_by_handle(userlist, tbot->bot)) == 999)
         tbots++;
         tbots++;
     }
     }
     if (tbots)
     if (tbots)