Software /
code /
prosody
Diff
plugins/mod_pubsub.lua @ 3761:e5fb26e8faeb
mod_pubsub: Preserve service object on module reload
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Dec 2010 13:35:21 +0000 |
parent | 3760:3bfb65496773 |
child | 3908:4d8081c35f01 |
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