Changeset

12085:1d213c6f781b 0.11

mod_pep: Don't pass pubsub services across reloads Ensures configuration is refreshed, releases some memory.
author Kim Alvefur <zash@zash.se>
date Thu, 04 Nov 2021 00:33:58 +0100
parents 12084:59557bc3c4b8
children 12086:1dc00ca6ee9d
files plugins/mod_pep.lua
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Thu Oct 21 15:59:16 2021 +0200
+++ b/plugins/mod_pep.lua	Thu Nov 04 00:33:58 2021 +0100
@@ -36,18 +36,12 @@
 
 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)