소스 검색

svn: 1523

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, "?")) {