소스 검색

Fix role assigned to self

Bryan Drewery 6 년 전
부모
커밋
72d38a2f19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;