Changeset

6129:64b4ede37da1

mod_anti_spam: Fix spam sender check in presence subscriptions (thanks mirux)
author Matthew Wild <mwild1@gmail.com>
date Wed, 01 Jan 2025 09:57:31 +0000
parents 6128:8ef4d825ad50
children 6130:5a0e47ad7d6b
files mod_anti_spam/mod_anti_spam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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