# HG changeset patch # User Matthew Wild # Date 1735681094 0 # Node ID 8ef4d825ad50784f3416ee6b93db3f4b0e5c45c9 # Parent 559648c7c8d60382419ae7e8ad5aa384aabec7b7 mod_anti_spam: Fix stanza type check in presence handler This was letting presence subscriptions slip through the net. diff -r 559648c7c8d6 -r 8ef4d825ad50 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Tue Dec 31 15:17:37 2024 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Tue Dec 31 21:38:14 2024 +0000 @@ -172,7 +172,7 @@ end, 500); module:hook("presence/bare", function (event) - if event.stanza.type ~= "subscribe" then + if event.stanza.attr.type ~= "subscribe" then return; end