OperServ: add SET READONLY lockdown
All checks were successful
CI / check (push) Successful in 3m31s

This commit is contained in:
Jean Chevronnet 2026-07-16 01:05:48 +00:00
parent b2442f85e6
commit 0027decdb7
No known key found for this signature in database
8 changed files with 112 additions and 2 deletions

View file

@ -973,6 +973,10 @@ pub trait Store {
// Network defence level (OperServ DEFCON) and its derived registration freezes.
fn defcon(&self) -> u8;
fn set_defcon(&mut self, level: u8);
// OperServ SET READONLY: operator lockdown that refuses locally-authored
// writes. Ephemeral (resets on restart).
fn readonly(&self) -> bool;
fn set_readonly(&mut self, on: bool);
fn registrations_frozen(&self) -> bool;
fn channel_regs_frozen(&self) -> bool;
// Whether account identity is owned externally (website); when true, IRC