NickServ: add SET AUTOOP per-account auto-op opt-out
A user with SET AUTOOP OFF is never auto-opped on join, even where they hold channel access — they op themselves via ChanServ UP. Stored inverted (no_autoop) so the default stays auto-op. Join gates on both the channel setting and the account preference; either can opt out.
This commit is contained in:
parent
0027decdb7
commit
87e21ff85f
11 changed files with 111 additions and 11 deletions
|
|
@ -914,6 +914,9 @@ pub trait Store {
|
|||
fn verify_account(&mut self, account: &str) -> Result<(), RegError>;
|
||||
fn set_email(&mut self, account: &str, email: Option<String>) -> Result<(), RegError>;
|
||||
fn set_greet(&mut self, account: &str, greet: &str) -> Result<(), RegError>;
|
||||
// NickServ SET AUTOOP: whether this account is auto-opped on join.
|
||||
fn set_account_autoop(&mut self, account: &str, on: bool) -> Result<(), RegError>;
|
||||
fn account_wants_autoop(&self, account: &str) -> bool;
|
||||
// HostServ vhosts.
|
||||
fn set_vhost(&mut self, account: &str, host: &str, setter: &str, ttl: Option<u64>) -> Result<(), RegError>;
|
||||
fn del_vhost(&mut self, account: &str) -> Result<bool, RegError>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue