aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-23 03:32:57 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-23 03:32:57 +0500
commit43c503330db3d5b1613c1babcd5ef150d2ccf247 (patch)
tree811e9e58727319d5e09edda729aeb88e81b8c0a1 /plugins/mod_disco.lua
parent035f481ac959ecde9a50101145b5c4e50a4ad488 (diff)
downloadprosody-43c503330db3d5b1613c1babcd5ef150d2ccf247.tar.gz
prosody-43c503330db3d5b1613c1babcd5ef150d2ccf247.zip
Added mod_disco
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);