NickServ: add UPDATE and LIST
All checks were successful
CI / check (push) Successful in 3m46s

UPDATE re-applies your auto-joins and vhost and re-checks for waiting
memos without re-identifying. LIST (auspex-gated) shows registered
accounts matching a glob, capped at 100. Adds an accounts_matching store
method.
This commit is contained in:
Jean Chevronnet 2026-07-15 18:24:52 +00:00
parent 959d085e7a
commit 21efbd32c1
No known key found for this signature in database
6 changed files with 91 additions and 0 deletions

View file

@ -16,6 +16,12 @@ impl Store for Db {
fn resolve_account(&self, name: &str) -> Option<&str> {
Db::resolve_account(self, name)
}
fn accounts_matching(&self, pattern: &str) -> Vec<AccountView> {
self.accounts()
.filter(|a| super::glob_match(pattern, &a.name))
.map(|a| AccountView { name: a.name.clone(), email: a.email.clone(), ts: a.ts, verified: a.verified, greet: a.greet.clone() })
.collect()
}
fn authenticate(&self, name: &str, password: &str) -> Option<&str> {
Db::authenticate(self, name, password)
}