aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitdc9f2471cade5fe5d96429b7f739b365a51b6196 (patch)
treed3327560dd5624aa2a8566fc4a6f65a53f0a13b3 /plugins
parent69270394efd9fdc2a3e1ba36f72517c1134d58b9 (diff)
downloadprosody-dc9f2471cade5fe5d96429b7f739b365a51b6196.tar.gz
prosody-dc9f2471cade5fe5d96429b7f739b365a51b6196.zip
mod_pep: Fixed a nil access (thanks Zash).
Diffstat (limited to 'plugins')
-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;