Comparison

plugins/mod_pep.lua @ 3666:44c4789d6e17

mod_pep: Fixed a nil access (thanks Zash).
author Waqas Hussain <waqas20@gmail.com>
date Sun, 28 Nov 2010 12:58:54 +0500
parent 3664:345cd1e04e80
child 3667:5c39dce29eaf
comparison
equal deleted inserted replaced
3665:98b55c3a3deb 3666:44c4789d6e17
233 if nfeature then notify[nfeature] = true; end 233 if nfeature then notify[nfeature] = true; end
234 end 234 end
235 end 235 end
236 hash_map[ver] = notify; -- update hash map 236 hash_map[ver] = notify; -- update hash map
237 if self then 237 if self then
238 for jid, item in pairs(origin.roster) do -- for all interested contacts 238 for jid, item in pairs(session.roster) do -- for all interested contacts
239 if item.subscription == "both" or item.subscription == "from" then 239 if item.subscription == "both" or item.subscription == "from" then
240 if not recipients[jid] then recipients[jid] = {}; end 240 if not recipients[jid] then recipients[jid] = {}; end
241 recipients[jid][contact] = notify; 241 recipients[jid][contact] = notify;
242 end 242 end
243 end 243 end