Ver código fonte

roles: Only consider opped bots

Bryan Drewery 4 anos atrás
pai
commit
a4def2e9bd
1 arquivos alterados com 1 adições e 1 exclusões
  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;
     }