aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-23 05:03:36 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-23 05:03:36 +0000
commitb94fd79634deabef5f4761825495e0940aec0ac6 (patch)
treebe1d302b3f7e9e812e294b95cad8750e1a690ac6 /plugins/mod_disco.lua
parent21df2699e2ffd587a014c9c345ca1161d6a4fc5c (diff)
parent43c503330db3d5b1613c1babcd5ef150d2ccf247 (diff)
downloadprosody-b94fd79634deabef5f4761825495e0940aec0ac6.tar.gz
prosody-b94fd79634deabef5f4761825495e0940aec0ac6.zip
Merge from waqas
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
new file mode 100644
index 00000000..261650ce
--- /dev/null
+++ b/plugins/mod_disco.lua
@@ -0,0 +1,9 @@
+
+local discomanager_handle = require "core.discomanager".handle;
+
+add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza)
+ session.send(discomanager_handle(stanza));
+end);
+add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza)
+ session.send(discomanager_handle(stanza));
+end);