Explorar o código

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

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
d068ed5536
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
     }
     enforce_bitch(chan);
+    reversing = 1; // Reverse any modes which triggered this.
   }
 }