fix: Apply spam checker to local restricted joins

This commit is contained in:
timedout authored and Jade Ellis committed 2026-01-05 20:10:29 +00:00
1 parent 76865e6f91
commit 4b873a1b95
3 files changed
+78 -49

No files matched your search

+10
View File
@@ -169,4 +169,14 @@ impl Service {
Ok(())
}
}
/// Returns whether all joins should be checked with Meowlnir.
/// Is always false if Meowlnir is not configured.
pub fn check_all_joins(&self) -> bool {
if let Some(Antispam { meowlnir: Some(cfg), .. }) = &self.services.config.antispam {
cfg.check_all_joins
} else {
false
}
}
}