Explorar o código

Fix role assigned to self

Bryan Drewery %!s(int64=6) %!d(string=hai) anos
pai
achega
72d38a2f19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mod/irc.mod/irc.cc

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

@@ -1805,7 +1805,7 @@ static void rebalance_roles_chan(struct chanset_t* chan)
      * of a bot assigning a role to a +d bot. This also allows
      * botnet splits to balance between themselves.
      */
-    if (!findbot(m->user->handle))
+    if (!in_chain(m->user->handle))
       continue;
 
     bots << m->user->handle;