Procházet zdrojové kódy

roles: Only consider opped bots

Bryan Drewery před 4 roky
rodič
revize
a4def2e9bd
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/mod/irc.mod/irc.cc

+ 1 - 1
src/mod/irc.mod/irc.cc

@@ -1786,7 +1786,7 @@ static void rebalance_roles_chan(struct chanset_t* chan)
   /* Gather list of all bots in the channel. */
   /* XXX: Keep this known in chan->bots */
   for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
-    if (!member_getuser(m) || !is_bot(m->user) || m->split) {
+    if (!chan_hasop(m) || !member_getuser(m) || !is_bot(m->user) || m->split) {
       continue;
     }