diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 12:58:54 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 12:58:54 +0500 |
commit | dc9f2471cade5fe5d96429b7f739b365a51b6196 (patch) | |
tree | d3327560dd5624aa2a8566fc4a6f65a53f0a13b3 /plugins/mod_pep.lua | |
parent | 69270394efd9fdc2a3e1ba36f72517c1134d58b9 (diff) | |
download | prosody-dc9f2471cade5fe5d96429b7f739b365a51b6196.tar.gz prosody-dc9f2471cade5fe5d96429b7f739b365a51b6196.zip |
mod_pep: Fixed a nil access (thanks Zash).
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r-- | plugins/mod_pep.lua | 2 |
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; |