aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-13 04:10:05 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-13 04:10:05 +0000
commit9d08cacdc7a15399eda029b050a3d5cc2d9ab773 (patch)
tree013be9e5a10979517a0b7d1c47aab9eec8c0715c /plugins
parent449a83920586649fa2d5d97fbf0989ef546fd133 (diff)
downloadprosody-9d08cacdc7a15399eda029b050a3d5cc2d9ab773.tar.gz
prosody-9d08cacdc7a15399eda029b050a3d5cc2d9ab773.zip
mod_pubsub: Expose 'service'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub.lua4
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);