Ver Fonte

Fix tcl protection

Bryan Drewery há 14 anos atrás
pai
commit
2edb8dcd7c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -1421,7 +1421,7 @@ static void cmd_botcmd(int idx, char *par)
   if ((strchr(botm, '*') && !findbot(botm)) || !strcmp(botm, "&") || botm[0] == '%') {
     if (!strncasecmp(cmd, "di", 2) || (!strncasecmp(cmd, "res", 3) && strncasecmp(cmd, "reset", 5)) || !strncasecmp(cmd, "sui", 3) || !strncasecmp(cmd, "pl", 2) || !strncasecmp(cmd, "ac", 2) ||
         !strncasecmp(cmd, "j", 1) || (!strncasecmp(cmd, "dump", 4) && (!strncasecmp(par, "privmsg", 7) || !strncasecmp(par, "notice", 6) || !strncasecmp(par, "quit", 4))) ||
-        ((!strncasecmp(cmd, "tcl", 3) || !strncasecmp(cmd, "script", 6)) && strstr(cmd, "privmsg"))) {
+        ((!strncasecmp(cmd, "tcl", 3) || !strncasecmp(cmd, "script", 6)) && strstr(par, "privmsg"))) {
       dprintf(idx, "Not a good idea.\n");
       return;
     } else if (strchr(botm, '*') && !(dcc[idx].user->flags & USER_OWNER)) {