Comparison

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
comparison
equal deleted inserted replaced
3621:7e1a1dd42088 3622:418354197a02
90 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq); 90 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);
91 91
92 service = pubsub.new({ 92 service = pubsub.new({
93 broadcaster = simple_broadcast 93 broadcaster = simple_broadcast
94 }); 94 });
95 _M.service = service; 95 module.environment.service = service;
96 96