Software /
code /
prosody
Changeset
3881:5f3e9d7064a4
mod_pubsub: Preserve service object on module reload
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Dec 2010 13:35:21 +0000 |
parents | 3880:2b736209bf21 |
children | 3882:4f88ea5f05ea |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua Fri Dec 17 13:23:29 2010 +0000 +++ b/plugins/mod_pubsub.lua Fri Dec 17 13:35:21 2010 +0000 @@ -195,3 +195,11 @@ }); module.environment.service = service; +function module.save() + return { service = service }; +end + +function module.restore(data) + service = data.service; + module.environment.service = service; +end