From 8669f36778c28a487b2920afd8df616464ed6373 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 28 Nov 2010 12:58:54 +0500 Subject: mod_pep: Fixed a nil access (thanks Zash). --- plugins/mod_pep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; -- cgit v1.2.3