Explorar el Código

* Consider ops when checking 'closed-exempt voice'

Bryan Drewery hace 14 años
padre
commit
223eb19491
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/mod/irc.mod/chan.c

+ 1 - 1
src/mod/irc.mod/chan.c

@@ -452,7 +452,7 @@ static void priority_do(struct chanset_t * chan, bool opsonly, int action, bool
             } else if ((action == PRIO_KICK) && !chan_sentkick(m) &&
                 // Check closed-exempt
                 !((chan_hasop(m) && chan->closed_exempt_mode == CHAN_FLAG_OP) ||
-                  (chan_hasvoice(m) && chan->closed_exempt_mode == CHAN_FLAG_VOICE))) {
+                  ((chan_hasvoice(m) || chan_hasop(m)) && chan->closed_exempt_mode == CHAN_FLAG_VOICE))) {
               ++actions;
               ++sent;
               if (chan->closed_ban)