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

@ -135,6 +135,7 @@ impl Service for ChanServ {
// homoglyph of a real channel), unless the guard is turned off.
if db.confusable_check_enabled() {
if let Some(reason) = echo_api::confusable_reason(chan) {
ctx.alert("REGISTER", format!("tried to register the look-alike channel \x02{chan}\x02 (blocked)"));
ctx.notice(me, from.uid, reason);
return;
}