1
0
Эх сурвалжийг харах

Only reop if the victim was already an op

Bryan Drewery 14 жил өмнө
parent
commit
356c2e306a

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

@@ -671,7 +671,7 @@ got_deop(struct chanset_t *chan, memberlist *m, memberlist *mv, char *isserver)
     /* do we want to reop victim? */
     if (
         /* I didn't deop them, another bot didn't deop them and they didn't deop themselves. */
-        ((m && !m->is_me && mv != m && !(m->user && m->user->bot)) || (!m)) && (
+        (was_op && ((m && !m->is_me && mv != m && !(m->user && m->user->bot)) || (!m))) && (
           /*
            * reversing
            * They are either an op or this chan is -bitch