aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-17 13:35:21 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-17 13:35:21 +0000
commit7a839059bbbc4c97b676f9d00e1df5807f29dcd3 (patch)
tree1263d84071221e31d305899405b100f6be2d23d5 /plugins
parent716fb898afa42bd40bd412bdce81fbaa79b0822f (diff)
downloadprosody-7a839059bbbc4c97b676f9d00e1df5807f29dcd3.tar.gz
prosody-7a839059bbbc4c97b676f9d00e1df5807f29dcd3.zip
mod_pubsub: Preserve service object on module reload
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub.lua8
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