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

@ -860,6 +860,7 @@ impl Engine {
self.set_services_channel(cfg.server.services_channel.clone());
self.set_standard_replies(cfg.server.standard_replies);
self.set_log_channel(cfg.log.as_ref().map(|l| l.channel.clone()));
self.db.set_notify_exclude(cfg.log.as_ref().map(|l| l.notify_exclude.clone()).unwrap_or_default());
self.set_guest_nick(&cfg.server.guest_nick);
if let Some(expire) = &cfg.expire {
self.set_expiry(expire.account_ttl(), expire.channel_ttl(), expire.warn_ttl());