aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-03 00:29:44 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-03 00:29:44 +0500
commit8101afcd522579a05ac9286353397a417e6165b9 (patch)
treec05014e9ee3691538a2c57894b8610faa9052ecd /plugins/mod_proxy65.lua
parentc7a7538ac0b5966387e4680db72a71027b81be7e (diff)
downloadprosody-8101afcd522579a05ac9286353397a417e6165b9.tar.gz
prosody-8101afcd522579a05ac9286353397a417e6165b9.zip
mod_proxy65: Add service discovery identity and feature, to help out mod_disco when loaded on a normal host.
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index 6fc12554..5b490730 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -117,6 +117,9 @@ function connlistener.ondisconnect(conn, err)
end
end
+module:add_identity("proxy", "bytestreams", name);
+module:add_feature("http://jabber.org/protocol/bytestreams");
+
module:hook("iq-get/host/http://jabber.org/protocol/disco#info:query", function(event)
local origin, stanza = event.origin, event.stanza;
local reply = replies_cache.disco_info;