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
commit77ea58af5a6fb743822319a1bdfd02efc39d5807 (patch)
treea0cb6a9c41147c51180695d3557003ef8d2c7320 /plugins/mod_proxy65.lua
parent22067acd9855987804055785606b64d427261677 (diff)
downloadprosody-77ea58af5a6fb743822319a1bdfd02efc39d5807.tar.gz
prosody-77ea58af5a6fb743822319a1bdfd02efc39d5807.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;