# HG changeset patch # User Waqas Hussain # Date 1290931902 -18000 # Node ID 5c39dce29eaf39818211d95c6de2d22833a55d8f # Parent 44c4789d6e17fb6f260072a55d9e6b9be16a0cf4 mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change. diff -r 44c4789d6e17 -r 5c39dce29eaf plugins/mod_pep.lua --- 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