Software /
code /
prosody
Diff
plugins/mod_proxy65.lua @ 3817:459c136305c3
mod_proxy65: Add service discovery identity and feature, to help out mod_disco when loaded on a normal host.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 03 Dec 2010 00:29:44 +0500 |
parent | 3816:39d83a43d473 |
child | 4374:c38f20f172b3 |
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua Fri Dec 03 00:22:11 2010 +0500 +++ b/plugins/mod_proxy65.lua Fri Dec 03 00:29:44 2010 +0500 @@ -117,6 +117,9 @@ 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;