Software /
code /
prosody
Diff
plugins/mod_pep.lua @ 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 |
parent | 9140:415a6d26709e |
child | 9142:85bc624b8685 |
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)