Software / code / prosody
Changeset
2045:3b7473a3fa44
PEP: Better reload support.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Thu, 22 Oct 2009 02:26:27 +0500 |
| parents | 2044:11efc4aecd55 |
| children | 2046:3992541f8a48 |
| files | plugins/mod_pep.lua |
| diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Thu Oct 22 02:26:06 2009 +0500 +++ b/plugins/mod_pep.lua Thu Oct 22 02:26:27 2009 +0500 @@ -25,6 +25,15 @@ 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");