Sfoglia il codice sorgente

* When enforcing +protect, reverse the modes which triggered it.

Bryan Drewery 16 anni fa
parent
commit
d068ed5536
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/mod/irc.mod/irc.c

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

@@ -1447,6 +1447,7 @@ static void do_protect(struct chanset_t* chan, const char* reason) {
       do_chanset(NULL, chan, "+botbitch +bitch", DO_LOCAL | DO_NET);
       do_chanset(NULL, chan, "+botbitch +bitch", DO_LOCAL | DO_NET);
     }
     }
     enforce_bitch(chan);
     enforce_bitch(chan);
+    reversing = 1; // Reverse any modes which triggered this.
   }
   }
 }
 }