aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-28 12:58:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-28 12:58:54 +0500
commit8669f36778c28a487b2920afd8df616464ed6373 (patch)
tree0df8bdd28581c362e431701ba8b85c7fd83d9884
parentb553d5d28974256dbab52cd8e3d9b16f8252d4d1 (diff)
downloadprosody-8669f36778c28a487b2920afd8df616464ed6373.tar.gz
prosody-8669f36778c28a487b2920afd8df616464ed6373.zip
mod_pep: Fixed a nil access (thanks Zash).
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 63063976..19997640 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -235,7 +235,7 @@ module:hook("iq-result/bare/disco", function(event)
end
hash_map[ver] = notify; -- update hash map
if self then
- for jid, item in pairs(origin.roster) do -- for all interested contacts
+ for jid, item in pairs(session.roster) do -- for all interested contacts
if item.subscription == "both" or item.subscription == "from" then
if not recipients[jid] then recipients[jid] = {}; end
recipients[jid][contact] = notify;