aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-04 00:33:58 +0100
committerKim Alvefur <zash@zash.se>2021-11-04 00:33:58 +0100
commita4491e8bd952060fe5783332763ebb7726c55a4b (patch)
treea97ed514fbffde7c154d7905f52419edd8bb5deb
parent577c21a2696f9a97d5e76779a8ab471c38b3ea5e (diff)
downloadprosody-a4491e8bd952060fe5783332763ebb7726c55a4b.tar.gz
prosody-a4491e8bd952060fe5783332763ebb7726c55a4b.zip
mod_pep: Don't pass pubsub services across reloads
Ensures configuration is refreshed, releases some memory.
-rw-r--r--plugins/mod_pep.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 4dc9ecbc..5d51f196 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -36,18 +36,12 @@ local max_max_items = module:get_option_number("pep_max_items", 256);
function module.save()
return {
- services = services;
recipients = recipients;
};
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)