Browse Source

Only reop if role 3 (#35)

Bryan Drewery 14 năm trước cách đây
mục cha
commit
acb18feba7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/mod/irc.mod/mode.c

+ 1 - 1
src/mod/irc.mod/mode.c

@@ -678,7 +678,7 @@ got_deop(struct chanset_t *chan, memberlist *m, memberlist *mv, char *isserver)
            */
           (reversing && (!chan_bitch(chan) || chk_op(victim, chan))) ||
           /* Reop bots to avoid them needing to ask */
-          (mv->user && mv->user->bot && chk_op(victim, chan))
+          (role == 3 && mv->user && mv->user->bot && chk_op(victim, chan))
         )
        ) {
       /* Then we'll bless the victim */