Quellcode durchsuchen

* Fixed cmd_botcmd not checking for "die" correctly. Thanks aqua.

svn: 1645
Bryan Drewery vor 21 Jahren
Ursprung
Commit
f775cbffc8
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -27,6 +27,7 @@ This is a summary of ChangeLog basically.
 * Fixed getin system continuing to parse for bans and assorted requests when bot wasn't even opped.
 * Fixed typo in cmd_date.
 * Added ability to negotiate a different link encryption for future use.
+* Fixed cmd_botcmd not checking for "die" correctly.
 
 1.2
 * No longer displaying SALTS on ./bin -v

+ 1 - 1
src/cmds.c

@@ -1466,7 +1466,7 @@ static void cmd_botcmd(int idx, char *par)
   /* the rest of the cmd will be logged remotely */
   putlog(LOG_CMDS, "*", "#%s# botcmd %s %s ...", dcc[idx].nick, botm, cmd);	
   if (!strcmp(botm, "*")) {
-    if (!strcmp(botm, "di") || !strcmp(botm, "die")) {
+    if (!strcmp(cmd, "di") || !strcmp(cmd, "die")) {
       dprintf(idx, "Not a good idea.\n");
       return;
     } else if (!dcc[idx].user->flags & USER_OWNER) {