nickserv/chanserv: catch styled/fullwidth look-alike names too, and add a [register] confusable_check toggle (REHASH-reloadable)
All checks were successful
CI / check (push) Successful in 3m48s
All checks were successful
CI / check (push) Successful in 3m48s
This commit is contained in:
parent
c2b70f5004
commit
89ac01d0b0
11 changed files with 72 additions and 12 deletions
|
|
@ -338,6 +338,11 @@ impl Db {
|
|||
self.external_accounts = on;
|
||||
}
|
||||
|
||||
/// Toggle the look-alike / mixed-script REGISTER guard (from `[register]`).
|
||||
pub fn set_confusable_check(&mut self, on: bool) {
|
||||
self.confusable_check = on;
|
||||
}
|
||||
|
||||
/// The network defence level (5 = normal, 1 = full lockdown).
|
||||
pub fn defcon(&self) -> u8 {
|
||||
self.defcon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue