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 | 8a3189b1453c33278de261d61d2251ec4d2207c5 (patch) | |
tree | 03a0d8035a6f4236a9940359665a0fd1afb72186 | |
parent | dc9f2471cade5fe5d96429b7f739b365a51b6196 (diff) | |
download | prosody-8a3189b1453c33278de261d61d2251ec4d2207c5.tar.gz prosody-8a3189b1453c33278de261d61d2251ec4d2207c5.zip |
mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change.
-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 |