Sfoglia il codice sorgente

* Fixed cmd_botcmd again ;/

svn: 802
Bryan Drewery 22 anni fa
parent
commit
18d6c0b671
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -1535,7 +1535,7 @@ static void cmd_botcmd(struct userrec *u, int idx, char *par)
     if (!strcmp(botm, "?") && bot_hublevel(get_user_by_handle(userlist, tbot->bot)) != 999)
       continue;
 
-    if ((rleaf != (-1) && cnt == rleaf) || ((rleaf == (-1) && wild_match(botm, tbot->bot)))) {
+    if ((rleaf != (-1) && (cnt - 1) == rleaf) || ((rleaf == (-1) && wild_match(botm, tbot->bot)))) {
       send_remote_simul(idx, tbot->bot, cmd, par ? par : "");
     }
   }