# HG changeset patch # User Matthew Wild # Date 1735725451 0 # Node ID 64b4ede37da196b5abaf14fafdc0380761eb1027 # Parent 8ef4d825ad50784f3416ee6b93db3f4b0e5c45c9 mod_anti_spam: Fix spam sender check in presence subscriptions (thanks mirux) diff -r 8ef4d825ad50 -r 64b4ede37da1 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Tue Dec 31 21:38:14 2024 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Wed Jan 01 09:57:31 2025 +0000 @@ -184,7 +184,7 @@ module:log("debug", "Not from known spam source server"); - if is_spammy_sender(event.stanza) then + if is_spammy_sender(jid_bare(event.stanza.attr.from)) then return block_spam(event, "known-spam-jid", "drop"); end