# HG changeset patch # User Kim Alvefur # Date 1507500318 -7200 # Node ID 9f8476c77fa8a80f8b01ce683849a2ddabc66fee # Parent 053cf683c2c7555d83300c05171cf305299a9b9b mod_pep_plus: Skip over roster metadata (version, pending) entry diff -r 053cf683c2c7 -r 9f8476c77fa8 plugins/mod_pep_plus.lua --- a/plugins/mod_pep_plus.lua Sun Oct 08 23:42:55 2017 +0200 +++ b/plugins/mod_pep_plus.lua Mon Oct 09 00:05:18 2017 +0200 @@ -348,9 +348,11 @@ hash_map[ver] = notify; -- update hash map if is_self then for jid, item in pairs(origin.roster) do -- for all interested contacts - if item.subscription == "both" or item.subscription == "from" then - if not recipients[jid] then recipients[jid] = {}; end - update_subscriptions(contact, jid, notify); + if jid then + if item.subscription == "both" or item.subscription == "from" then + if not recipients[jid] then recipients[jid] = {}; end + update_subscriptions(contact, jid, notify); + end end end end