Software /
code /
prosody-modules
Diff
mod_anti_spam/mod_anti_spam.lua @ 6128:8ef4d825ad50
mod_anti_spam: Fix stanza type check in presence handler
This was letting presence subscriptions slip through the net.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 31 Dec 2024 21:38:14 +0000 |
parent | 6127:559648c7c8d6 |
child | 6129:64b4ede37da1 |
line wrap: on
line diff
--- 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