From a4491e8bd952060fe5783332763ebb7726c55a4b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 4 Nov 2021 00:33:58 +0100 Subject: mod_pep: Don't pass pubsub services across reloads Ensures configuration is refreshed, releases some memory. --- plugins/mod_pep.lua | 6 ------ 1 file changed, 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) -- cgit v1.2.3