Diff

plugins/mod_pubsub.lua @ 3622:418354197a02

mod_pubsub: Use module.environment to reference the module's environment
author Matthew Wild <mwild1@gmail.com>
date Sat, 13 Nov 2010 04:12:03 +0000
parent 3621:7e1a1dd42088
child 3641:3603aeb325de
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Sat Nov 13 04:10:05 2010 +0000
+++ b/plugins/mod_pubsub.lua	Sat Nov 13 04:12:03 2010 +0000
@@ -92,5 +92,5 @@
 service = pubsub.new({
 	broadcaster = simple_broadcast
 });
-_M.service = service;
+module.environment.service = service;