Software / code / prosody
Changeset
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 |
| parents | 3793:b7b3e575a12b |
| children | 3795:6bd4305044a8 |
| files | plugins/mod_pep.lua |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Sun Nov 28 12:58:54 2010 +0500 +++ b/plugins/mod_pep.lua Sun Nov 28 13:11:42 2010 +0500 @@ -239,11 +239,11 @@ if item.subscription == "both" or item.subscription == "from" then if not recipients[jid] then recipients[jid] = {}; end recipients[jid][contact] = notify; + publish_all(jid, contact, session); end end - else - recipients[user][contact] = notify; -- set recipient's data to calculated data end + recipients[user][contact] = notify; -- set recipient's data to calculated data -- send messages to recipient publish_all(user, contact, session); end