mod_pubsub: Use module.environment to reference the module's environment
authorMatthew Wild <mwild1@gmail.com>
Sat, 13 Nov 2010 04:12:03 +0000 (04:12 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sat, 13 Nov 2010 04:12:03 +0000 (04:12 +0000)
plugins/mod_pubsub.lua

index 655220bdb2ea25c1cc81a844a91d57176a88c7a9..cb0eff7a0f6809275dd662be883ba4a5cfb183f9 100644 (file)
@@ -92,5 +92,5 @@ module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq
 service = pubsub.new({
        broadcaster = simple_broadcast
 });
-_M.service = service;
+module.environment.service = service;