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
All checks were successful
CI / check (push) Successful in 3m44s
This commit is contained in:
parent
89ac01d0b0
commit
0d16240606
5 changed files with 46 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue