Comparison

plugins/mod_pep.lua @ 3667:5c39dce29eaf

mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 28 Nov 2010 13:11:42 +0500
parent 3666:44c4789d6e17
child 3668:29a340777d7b
comparison
equal deleted inserted replaced
3666:44c4789d6e17 3667:5c39dce29eaf
237 if self then 237 if self then
238 for jid, item in pairs(session.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 publish_all(jid, contact, session);
242 end 243 end
243 end 244 end
244 else 245 end
245 recipients[user][contact] = notify; -- set recipient's data to calculated data 246 recipients[user][contact] = notify; -- set recipient's data to calculated data
246 end
247 -- send messages to recipient 247 -- send messages to recipient
248 publish_all(user, contact, session); 248 publish_all(user, contact, session);
249 end 249 end
250 end 250 end
251 end); 251 end);