modules: port securelist and denychans (badchan/goodchan with redirect)
This commit is contained in:
parent
245d8d8529
commit
dc22dcd072
4 changed files with 272 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue