Changeset

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
parents 3760:3bfb65496773
children 3765:0731e5432baa
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