# HG changeset patch # User Matthew Wild # Date 1737111722 0 # Node ID d80e398a2acced31435e8c42804c8f95ba8d0524 # Parent 160d1bcfe3412bd667966d349d89d609c4339948 mod_anti_spam: Also consider not a stranger if we have a pending (out) sub request diff -r 160d1bcfe341 -r d80e398a2acc mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 10:32:34 2025 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 11:02:02 2025 +0000 @@ -68,7 +68,11 @@ local to_session = full_sessions[stanza.attr.to]; if to_session then return false; end - if not (is_contact_subscribed(to_user, to_host, from_jid) or is_user_subscribed(to_user, to_host, from_jid)) then + if not ( + is_contact_subscribed(to_user, to_host, from_jid) or + is_user_subscribed(to_user, to_host, from_jid) or + is_contact_pending_out(to_user, to_host, from_jid) + ) then local from_user, from_host = jid_split(from_jid); -- Allow all messages from your own jid