diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-17 13:35:21 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-17 13:35:21 +0000 |
commit | 07e945631dc2abe7a2afe204919a72d25398c687 (patch) | |
tree | 22c8fdafd26391d1cad661418648385c8726f7fb /plugins/mod_pubsub.lua | |
parent | a01a95ee9412b85f3ef6ef85c9cc5819ff33b951 (diff) | |
download | prosody-07e945631dc2abe7a2afe204919a72d25398c687.tar.gz prosody-07e945631dc2abe7a2afe204919a72d25398c687.zip |
mod_pubsub: Preserve service object on module reload
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 769dd49a..dc1b1263 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -195,3 +195,11 @@ service = pubsub.new({ }); module.environment.service = service; +function module.save() + return { service = service }; +end + +function module.restore(data) + service = data.service; + module.environment.service = service; +end |