From 7a839059bbbc4c97b676f9d00e1df5807f29dcd3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 17 Dec 2010 13:35:21 +0000 Subject: mod_pubsub: Preserve service object on module reload --- plugins/mod_pubsub.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') 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 -- cgit v1.2.3