Procházet zdrojové kódy

* Fixed 'reset*' being blocked with 'botcmd *'

svn: 2274
Bryan Drewery před 21 roky
rodič
revize
9ef858b342
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

@@ -31,6 +31,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Added syslog style repeated log detection for all logging.
 * Fixed cmd_net[ps|last] not working. (#130, #131)
 * Added note at end of display for cmd_match to try using cmd_matchbot
+* Fixed 'reset*' being blocked with 'botcmd *'
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 1 - 1
src/cmds.c

@@ -1263,7 +1263,7 @@ static void cmd_botcmd(int idx, char *par)
   putlog(LOG_CMDS, "*", "#%s# botcmd %s %s ...", dcc[idx].nick, botm, cmd);	
 
   if (!strcmp(botm, "*")) {
-    if (!egg_strncasecmp(cmd, "di", 2) || !egg_strncasecmp(cmd, "res", 3) || !egg_strncasecmp(cmd, "sui", 3) || 
+    if (!egg_strncasecmp(cmd, "di", 2) || (!egg_strncasecmp(cmd, "res", 3) && egg_strncasecmp(cmd, "reset", 5)) || !egg_strncasecmp(cmd, "sui", 3) || 
         !egg_strncasecmp(cmd, "j", 1)) {
       dprintf(idx, "Not a good idea.\n");
       return;