Diff

plugins/mod_pubsub.lua @ 3621:7e1a1dd42088

mod_pubsub: Expose 'service'
author Matthew Wild <mwild1@gmail.com>
date Sat, 13 Nov 2010 04:10:05 +0000
parent 3619:291ae816d800
child 3622:418354197a02
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Sat Nov 13 04:09:14 2010 +0000
+++ b/plugins/mod_pubsub.lua	Sat Nov 13 04:10:05 2010 +0000
@@ -87,8 +87,10 @@
 	end
 end
 
+module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);
+
 service = pubsub.new({
 	broadcaster = simple_broadcast
 });
+_M.service = service;
 
-module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);