diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-09 00:05:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-09 00:05:18 +0200 |
commit | bed081dc6390a0469a83f9e5c78433ad56fc9c6c (patch) | |
tree | 8547cfae3deecdff158b761a68c9a56e11c93904 /plugins/mod_pep_plus.lua | |
parent | 15e642083432061b90857bc2b78f486d7cacd9e4 (diff) | |
download | prosody-bed081dc6390a0469a83f9e5c78433ad56fc9c6c.tar.gz prosody-bed081dc6390a0469a83f9e5c78433ad56fc9c6c.zip |
mod_pep_plus: Skip over roster metadata (version, pending) entry
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r-- | plugins/mod_pep_plus.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index b9ff3098..132482d8 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -348,9 +348,11 @@ module:hook("iq-result/bare/disco", function(event) 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 |