projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c65e71
)
mod_pubsub: Preserve service object on module reload
author
Matthew Wild
<mwild1@gmail.com>
Fri, 17 Dec 2010 13:35:21 +0000
(13:35 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 17 Dec 2010 13:35:21 +0000
(13:35 +0000)
plugins/mod_pubsub.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_pubsub.lua
b/plugins/mod_pubsub.lua
index 769dd49ad8957fd782a2efdba3358a9a306ec002..dc1b1263960840cdec1ff5854d3bb2c75712fc06 100644
(file)
--- 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