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
|
|
@ -88,6 +88,12 @@ impl Store for Db {
|
|||
fn account_wants_autoop(&self, account: &str) -> bool {
|
||||
Db::account_wants_autoop(self, account)
|
||||
}
|
||||
fn set_account_kill(&mut self, account: &str, on: bool) -> Result<(), RegError> {
|
||||
Db::set_account_kill(self, account, on)
|
||||
}
|
||||
fn account_wants_protect(&self, account: &str) -> bool {
|
||||
Db::account_wants_protect(self, account)
|
||||
}
|
||||
fn set_vhost(&mut self, account: &str, host: &str, setter: &str, ttl: Option<u64>) -> Result<(), RegError> {
|
||||
Db::set_vhost(self, account, host, setter, ttl)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue