modules: port securelist and denychans (badchan/goodchan with redirect)

This commit is contained in:
Jean Chevronnet 2026-08-09 11:35:21 +00:00
parent 245d8d8529
commit dc22dcd072
4 changed files with 272 additions and 0 deletions

View file

@ -529,6 +529,10 @@ impl Server {
return;
}
}
// denychans — a configured forbidden channel name (opers bypass per badchan)
if crate::modules::denychans::intercept(self, uid, name, is_oper) {
return;
}
// an existing channel can refuse the join (+k / +b / +i / +z / +R / +J)
if let Some(ch) = self.channels.get(&key) {
if let Some(k) = &ch.modes.key {