Diff

plugins/mod_pubsub/mod_pubsub.lua @ 9118:70f34c663fb3

mod_pubsub: Add a public method for retrieving the service object There is already a set_service()
author Kim Alvefur <zash@zash.se>
date Sun, 05 Aug 2018 18:28:31 +0200
parent 9108:86f31a2174b3
child 9119:5444d4a8ad90
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Sun Aug 05 15:17:00 2018 +0200
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Sun Aug 05 18:28:31 2018 +0200
@@ -150,6 +150,10 @@
 	end
 end
 
+function get_service()
+	return service;
+end
+
 function set_service(new_service)
 	service = new_service;
 	module.environment.service = service;