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 | a1eef5550ed878041c8bbae158d48d81e7fb83b9 (patch) | |
tree | 8547cfae3deecdff158b761a68c9a56e11c93904 /plugins | |
parent | 5f8574861e0b52dc9eb7bfdbe101bdf082ed8415 (diff) | |
download | prosody-a1eef5550ed878041c8bbae158d48d81e7fb83b9.tar.gz prosody-a1eef5550ed878041c8bbae158d48d81e7fb83b9.zip |
mod_pep_plus: Skip over roster metadata (version, pending) entry
Diffstat (limited to 'plugins')
-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 |