Răsfoiți Sursa

Only reop if the victim was already an op

Bryan Drewery 14 ani în urmă
părinte
comite
356c2e306a
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/mod/irc.mod/mode.c

+ 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