# HG changeset patch # User Matthew Wild # Date 1289621405 0 # Node ID 7e1a1dd420889b7e6562ea033364464e62929f67 # Parent bfc47564aaef8afc94d725d6b0be426d59112f26 mod_pubsub: Expose 'service' diff -r bfc47564aaef -r 7e1a1dd42088 plugins/mod_pubsub.lua --- 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);