Mercurial > prosody-hg
comparison 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 |
| parents | 291ae816d800 |
| children | 418354197a02 |
comparison
equal
deleted
inserted
replaced
| 3620:bfc47564aaef | 3621:7e1a1dd42088 |
|---|---|
| 85 message.attr.to = jid; | 85 message.attr.to = jid; |
| 86 core_post_stanza(hosts[module.host], message); | 86 core_post_stanza(hosts[module.host], message); |
| 87 end | 87 end |
| 88 end | 88 end |
| 89 | 89 |
| 90 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq); | |
| 91 | |
| 90 service = pubsub.new({ | 92 service = pubsub.new({ |
| 91 broadcaster = simple_broadcast | 93 broadcaster = simple_broadcast |
| 92 }); | 94 }); |
| 95 _M.service = service; | |
| 93 | 96 |
| 94 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq); |
