operserv: NOTIFY honours a config exclude list so relay/pylinked clients cannot flood the feed

This commit is contained in:
Jean Chevronnet 2026-07-18 16:47:25 +00:00
parent c415117ec5
commit 8f19a94928
No known key found for this signature in database
8 changed files with 43 additions and 1 deletions

View file

@ -184,6 +184,12 @@ async fn main() -> Result<()> {
}
_ => tracing::info!("extban policy: all extbans the ircd offers are accepted"),
}
if let Some(log) = &cfg.log {
if !log.notify_exclude.is_empty() {
db.set_notify_exclude(log.notify_exclude.clone());
tracing::info!(masks = %log.notify_exclude.join(" "), "notify: excluding masks from the staff feed");
}
}
if let Some(email) = &cfg.email {
db.set_email_brand(&email.brand);
db.set_email_accent(&email.accent);