# HG changeset patch # User Matthew Wild # Date 1771600146 0 # Node ID f45c84d98cde9dceac74ed831c6d82667af289b6 # Parent fb7d5c80dc40958397b0d81d4897754a73ef4388 mod_poke_strangers: Poke on subscription requests diff -r fb7d5c80dc40 -r f45c84d98cde mod_poke_strangers/mod_poke_strangers.lua --- a/mod_poke_strangers/mod_poke_strangers.lua Wed Feb 18 17:01:42 2026 +0000 +++ b/mod_poke_strangers/mod_poke_strangers.lua Fri Feb 20 15:09:06 2026 +0000 @@ -50,4 +50,13 @@ module:hook("message/bare", check_subscribed, 225); module:hook("message/full", check_subscribed, 225); + +-- Check subscription requests +module:hook("presence/bare", function (event) + if event.stanza.type ~= "subscribe" then + return; + end + return check_subscribed(event); +end, 225); + -- Not hooking iqs, as that could turn into infinite loops!