opmoderated channel mode (+U — route unprivileged messages to ops)

This commit is contained in:
Jean Chevronnet 2026-08-09 01:07:30 +00:00
parent 4a53c80d4d
commit 4d6525cac2
4 changed files with 26 additions and 4 deletions

View file

@ -154,6 +154,7 @@ pub struct ChanModes {
pub allowinvite: bool, // +A — any member (not just ops) may INVITE
pub permanent: bool, // +P — channel persists with zero members
pub kicknorejoin: Option<u32>, // +J <secs> — block rejoin for N secs after a kick
pub opmoderated: bool, // +U — unprivileged users' messages go to ops only
}
impl ChanModes {
@ -180,6 +181,7 @@ impl ChanModes {
'Q' => self.nokicks = on,
'A' => self.allowinvite = on,
'P' => self.permanent = on,
'U' => self.opmoderated = on,
_ => {}
}
}