From 3178d9bebb5b22eb40dd0e988cc22bf1888caf94 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 6 Aug 2018 18:58:25 +0200 Subject: mod_pep: Pass 'recipients' table across module reloads --- plugins/mod_pep.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index e94ba4bb..f6ec8e12 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -32,11 +32,15 @@ local known_nodes = module:open_store("pep"); local max_max_items = module:get_option_number("pep_max_items", 256); function module.save() - return { services = services }; + return { + services = services; + recipients = recipients; + }; end function module.restore(data) services = data.services; + recipients = data.recipients; end function is_item_stanza(item) -- cgit v1.2.3