Przeglądaj źródła

* Don't enforce_bitch() on the trigger.

+bitch will trigger, punishing the opper and anyone opped. reversed
is set, so anyone deopped will get reopped. The botnet will
send +botbitch, causing the channel to be rechecked and thus enforce_bitch
called very shortly. Better to act on what just happened, instead
of mass deopping in a random manor, as the opped clients may be last
to get deopped in the enforce_bitch().
Bryan Drewery 16 lat temu
rodzic
commit
dc43affa22
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/mod/irc.mod/irc.c

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

@@ -1446,7 +1446,7 @@ static void do_protect(struct chanset_t* chan, const char* reason) {
       putlog(LOG_MISC, "*", "%s detected in %s: Setting +botbitch to protect the channel.", reason, chan->dname);
       do_chanset(NULL, chan, "+botbitch +bitch", DO_LOCAL | DO_NET);
     }
-    enforce_bitch(chan);
+//    enforce_bitch(chan);
     reversing = 1; // Reverse any modes which triggered this.
   }
 }