Parcourir la source

Don't auto reop if another bot deopped the victim (#35)

Bryan Drewery il y a 14 ans
Parent
commit
97db577117
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/mod/irc.mod/mode.c

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

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