Bryan Drewery 21 سال پیش
والد
کامیت
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 */
   putlog(LOG_CMDS, "*", "#%s# botcmd %s %s ...", dcc[idx].nick, botm, cmd);	
   if (!strcmp(botm, "*")) {
-    if (!strcmp(botm, "di") || !strcmp(botm, "die")) 
+    if (!strcmp(botm, "di") || !strcmp(botm, "die")) {
       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");
-    return;
+      return;
+    }
   }
 
   if (!strcmp(botm, "?")) {