diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-22 02:26:27 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-22 02:26:27 +0500 |
commit | 3abe249511d244ba1875208aca4b6326d1227e4a (patch) | |
tree | 106e49550fce0c7f49fa7f8c22112da68a0affa9 | |
parent | 8ca1f81738b7f2e8b78e8f0df5efb41a4c485bbc (diff) | |
download | prosody-3abe249511d244ba1875208aca4b6326d1227e4a.tar.gz prosody-3abe249511d244ba1875208aca4b6326d1227e4a.zip |
PEP: Better reload support.
-rw-r--r-- | plugins/mod_pep.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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"); |