# HG changeset patch # User Matthew Wild # Date 1735399533 0 # Node ID b644832a82905098318dfe7848284c07155505d9 # Parent dc2cce03554d40fd02ec21ad7d765faf6744cc0b mod_anti_spam: Fix syntax of user_exists() check (thanks Martin/Zash) diff -r dc2cce03554d -r b644832a8290 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Sat Dec 28 15:23:33 2024 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Sat Dec 28 15:25:33 2024 +0000 @@ -130,9 +130,9 @@ end module:hook("message/bare", function (event) - local to_bare = jid_bare(event.stanza.attr.to); + local to_user, to_host = jid_split(event.stanza.attr.to); - if not user_exists(to_bare) then return; end + if not user_exists(to_user, to_host) then return; end local from_bare = jid_bare(event.stanza.attr.from); if not is_from_stranger(from_bare, event) then return; end