1
0
Bryan Drewery 21 жил өмнө
parent
commit
23eb2b2e4f
1 өөрчлөгдсөн 5 нэмэгдсэн , 3 устгасан
  1. 5 3
      src/cmds.c

+ 5 - 3
src/cmds.c

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