Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 3794:56add628d838
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 | 3793:b7b3e575a12b |
child | 3668:29a340777d7b |
comparison
equal
deleted
inserted
replaced
3793:b7b3e575a12b | 3794:56add628d838 |
---|---|
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); |