aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-20 20:23:23 +0200
committerKim Alvefur <zash@zash.se>2018-10-20 20:23:23 +0200
commit6d2039efffe90919b9764b8ce244e92c1f851745 (patch)
treec021e1ef8a9ed5745068f4385f8ddd6533d40628 /plugins/mod_pep.lua
parent649e063e85a683275025e2742480f6d707fbb976 (diff)
downloadprosody-6d2039efffe90919b9764b8ce244e92c1f851745.tar.gz
prosody-6d2039efffe90919b9764b8ce244e92c1f851745.zip
mod_pep: Add all pubsub service objects to item API in order to behave across reloads
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 0d52a2fd..f1228b5a 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -43,6 +43,10 @@ end
function module.restore(data)
services = data.services;
recipients = data.recipients;
+ for username, service in pairs(services) do
+ local user_bare = jid_join(username, host);
+ module:add_item("pep-service", { service = service, jid = user_bare });
+ end
end
function is_item_stanza(item)