소스 검색

* Fixed |a issue

svn: 261
Bryan Drewery 22 년 전
부모
커밋
450baf7970
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/flags.c

+ 3 - 0
src/flags.c

@@ -235,6 +235,9 @@ int sanity_check(int atr)
  */
 int chan_sanity_check(int chatr, int atr)
 {
+  /* admin for chan does shit.. */
+  if (chattr & USER_ADMIN)
+    chatr &= ~(USER_ADMIN);
   if ((chatr & USER_OP) && (chatr & USER_DEOP))
     chatr &= ~(USER_OP | USER_DEOP);
   if ((chatr & USER_VOICE) && (chatr & USER_QUIET))