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
commit07e945631dc2abe7a2afe204919a72d25398c687 (patch)
tree22c8fdafd26391d1cad661418648385c8726f7fb /plugins
parenta01a95ee9412b85f3ef6ef85c9cc5819ff33b951 (diff)
downloadprosody-07e945631dc2abe7a2afe204919a72d25398c687.tar.gz
prosody-07e945631dc2abe7a2afe204919a72d25398c687.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