chanserv: SET SECUREOPS (strip ops from users without access)

When SECUREOPS is on, a user who gains channel-operator status without op-level
access is immediately deopped. Enforced in the engine's ChannelOp hook (manual
FMODE +o) and the Join hook (FJOIN prefix ops), sourced from ChanServ. Same
typed-settings path; shown in INFO; engine test covers on and off.
This commit is contained in:
Jean Chevronnet 2026-07-13 03:14:43 +00:00
parent 3bf6b2be77
commit d2c6448c6b
No known key found for this signature in database
5 changed files with 48 additions and 2 deletions

View file

@ -295,6 +295,7 @@ pub struct ChannelView {
pub signkick: bool,
pub private: bool,
pub peace: bool,
pub secureops: bool,
}
// A single ChanServ SET option, named for the typed `set_channel_setting` call.
@ -303,6 +304,7 @@ pub enum ChanSetting {
SignKick,
Private,
Peace,
SecureOps,
}
impl ChannelView {