diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-23 05:03:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-23 05:03:36 +0000 |
commit | b94fd79634deabef5f4761825495e0940aec0ac6 (patch) | |
tree | be1d302b3f7e9e812e294b95cad8750e1a690ac6 /plugins/mod_disco.lua | |
parent | 21df2699e2ffd587a014c9c345ca1161d6a4fc5c (diff) | |
parent | 43c503330db3d5b1613c1babcd5ef150d2ccf247 (diff) | |
download | prosody-b94fd79634deabef5f4761825495e0940aec0ac6.tar.gz prosody-b94fd79634deabef5f4761825495e0940aec0ac6.zip |
Merge from waqas
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r-- | plugins/mod_disco.lua | 9 |
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);
|