Software /
code /
prosody
Changeset
3621:7e1a1dd42088
mod_pubsub: Expose 'service'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 13 Nov 2010 04:10:05 +0000 |
parents | 3620:bfc47564aaef |
children | 3622:418354197a02 |
files | plugins/mod_pubsub.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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);