Explorar o código

Only reop if role 3 (#35)

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
acb18feba7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))) ||
           (reversing && (!chan_bitch(chan) || chk_op(victim, chan))) ||
           /* Reop bots to avoid them needing to ask */
           /* 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 */
       /* Then we'll bless the victim */