# HG changeset patch # User Waqas Hussain # Date 1290931134 -18000 # Node ID 44c4789d6e17fb6f260072a55d9e6b9be16a0cf4 # Parent 98b55c3a3deb356e75514284cbacd465ba528257 mod_pep: Fixed a nil access (thanks Zash). diff -r 98b55c3a3deb -r 44c4789d6e17 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Sun Nov 28 07:56:08 2010 +0500 +++ b/plugins/mod_pep.lua Sun Nov 28 12:58:54 2010 +0500 @@ -235,7 +235,7 @@ 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;