diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 13:11:42 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-28 13:11:42 +0500 |
commit | 839ce608c849c22f9fa867fcf3b86c9341cf696a (patch) | |
tree | 5420fca6c37f8b9bb51a68746fa633693f98996f /plugins | |
parent | 8669f36778c28a487b2920afd8df616464ed6373 (diff) | |
download | prosody-839ce608c849c22f9fa867fcf3b86c9341cf696a.tar.gz prosody-839ce608c849c22f9fa867fcf3b86c9341cf696a.zip |
mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pep.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 19997640..0d42ac0f 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -239,11 +239,11 @@ module:hook("iq-result/bare/disco", function(event) 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 |