ChanServ: add SET AUTOOP
All checks were successful
CI / check (push) Successful in 3m35s

SET AUTOOP {ON|OFF} controls whether access members are auto-opped/voiced
on join (on by default). Stored inverted as a settings flag so the
default stays on, and gated in the join handler.
This commit is contained in:
Jean Chevronnet 2026-07-16 00:36:19 +00:00
parent 2c282d036f
commit 2850620be1
No known key found for this signature in database
7 changed files with 46 additions and 3 deletions

View file

@ -355,6 +355,10 @@ pub struct ChanSettings {
// Kick anyone without channel access when they join.
#[serde(default)]
pub restricted: bool,
// Stored inverted so it defaults to auto-op ON: when set, access members are
// NOT auto-opped on join (they must UP). SET AUTOOP toggles it.
#[serde(default)]
pub noautoop: bool,
// Remember the topic and restore it when the channel is recreated.
#[serde(default)]
pub keeptopic: bool,