diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 94e18f03..655220bd 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -87,8 +87,10 @@ function simple_broadcast(node, jids, item) 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); |