Changeset

9141:c1368fb756bf

mod_pep: Pass 'recipients' table across module reloads
author Kim Alvefur <zash@zash.se>
date Mon, 06 Aug 2018 18:58:25 +0200
parents 9140:415a6d26709e
children 9142:85bc624b8685
files plugins/mod_pep.lua
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Sun Aug 05 01:53:48 2018 +0200
+++ b/plugins/mod_pep.lua	Mon Aug 06 18:58:25 2018 +0200
@@ -32,11 +32,15 @@
 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)