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 | 7a839059bbbc4c97b676f9d00e1df5807f29dcd3 (patch) | |
tree | 1263d84071221e31d305899405b100f6be2d23d5 /plugins/mod_pubsub.lua | |
parent | 716fb898afa42bd40bd412bdce81fbaa79b0822f (diff) | |
download | prosody-7a839059bbbc4c97b676f9d00e1df5807f29dcd3.tar.gz prosody-7a839059bbbc4c97b676f9d00e1df5807f29dcd3.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 |