engine: staff-feed alerts are also recorded to the incident log, so a blocked look-alike registration is searchable via OperServ LOGSEARCH
All checks were successful
CI / check (push) Successful in 3m45s

This commit is contained in:
Jean Chevronnet 2026-07-19 00:29:55 +00:00
parent 0d16240606
commit 754c5d9e95
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

View file

@ -105,7 +105,11 @@ impl Engine {
// Announce whatever this command changed to the staff audit channel.
out.extend(self.audit_feed(audit_mark, &nick, account.as_deref()));
for (cat, text) in alerts {
if let Some(line) = self.feed(&cat, format!("{} {text}", self.who(from))) {
let full = format!("{} {text}", self.who(from));
// Record to the searchable incident log (OperServ LOGSEARCH) and announce.
let now = self.now_secs();
self.network.record_incident(format!("[{cat}] {full}"), now);
if let Some(line) = self.feed(&cat, full) {
out.push(line);
}
}