Browse Source

Only consider bots for roles if they have the FEATURE_ROLES feature.

Issue #87
Bryan Drewery 10 years ago
parent
commit
371f9ee5df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/mod/irc.mod/irc.cc

+ 4 - 0
src/mod/irc.mod/irc.cc

@@ -1785,6 +1785,10 @@ static void rebalance_roles_chan(struct chanset_t* chan)
     if (!chk_op(fr, chan)) {
       continue;
     }
+    /* Only consider bots that have the roles feature. */
+    if (!(m->user->fflags & FEATURE_ROLES)) {
+      continue;
+    }
     bots << m->user->handle;
   }
   botcount = bots.length();