From 839ce608c849c22f9fa867fcf3b86c9341cf696a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 28 Nov 2010 13:11:42 +0500 Subject: mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change. --- plugins/mod_pep.lua | 4 ++-- 1 file 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 -- cgit v1.2.3