aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_pep.lua4
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