NickServ: add SET KILL to toggle nick protection
Nick protection was unconditional. SET KILL OFF lets an account opt out — an unidentified user keeping one of its nicks is no longer prompted or renamed to a guest. Stored inverted (no_protect) so protection stays the default. Accepts Anope's ON/QUICK/IMMED/OFF; grace is a fixed interval here, so the finer variants simply enable protection like ON.
This commit is contained in:
parent
87e21ff85f
commit
2c4bc9079c
11 changed files with 106 additions and 9 deletions
|
|
@ -96,6 +96,11 @@ pub struct Account {
|
|||
// (auto-op enabled) is the zero value.
|
||||
#[serde(default)]
|
||||
pub no_autoop: bool,
|
||||
// NickServ SET KILL: when off, this account's nicks are not protected — an
|
||||
// unidentified user keeping the nick is never renamed to a guest. Stored
|
||||
// inverted so the default (protection enabled) is the zero value.
|
||||
#[serde(default)]
|
||||
pub no_protect: bool,
|
||||
// Assigned vhost (HostServ), applied to the displayed host on identify.
|
||||
#[serde(default)]
|
||||
pub vhost: Option<Vhost>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue