fix: Apply spam checker to local restricted joins

This commit is contained in:
timedout
2026-01-05 12:12:34 +00:00
committed by Jade Ellis
parent 76865e6f91
commit 4b873a1b95
3 changed files with 78 additions and 49 deletions
+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
}
}
}