From 3abe249511d244ba1875208aca4b6326d1227e4a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 22 Oct 2009 02:26:27 +0500 Subject: PEP: Better reload support. --- plugins/mod_pep.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 70934adf..bfe22867 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -25,6 +25,15 @@ local data = {}; local recipients = {}; local hash_map = {}; +module.save = function() + return { data = data, recipients = recipients, hash_map = hash_map }; +end +module.restore = function(state) + data = state.data or {}; + recipients = state.recipients or {}; + hash_map = state.hash_map or {}; +end + module:add_identity("pubsub", "pep", "Prosody"); module:add_feature("http://jabber.org/protocol/pubsub#publish"); -- cgit v1.2.3