nickserv/chanserv: announce a blocked look-alike registration to the staff feed (ServiceCtx alert drained by dispatch)
All checks were successful
CI / check (push) Successful in 3m44s

This commit is contained in:
Jean Chevronnet 2026-07-19 00:24:27 +00:00
parent 89ac01d0b0
commit 0d16240606
No known key found for this signature in database
5 changed files with 46 additions and 0 deletions

View file

@ -16,6 +16,7 @@ pub fn handle(me: &str, from: &Sender, args: &[&str], ctx: &mut ServiceCtx, db:
// unless the guard is turned off.
if db.confusable_check_enabled() {
if let Some(reason) = echo_api::confusable_reason(from.nick) {
ctx.alert("REGISTER", "tried to register a look-alike nick (blocked)");
ctx.notice(me, from.uid, reason);
return;
}