Explorar el Código

* Fixed |a issue

svn: 261
Bryan Drewery hace 22 años
padre
commit
450baf7970
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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))