aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-07-11 23:51:40 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-07-11 23:51:40 +0500
commit8c6fe5a36d56ceb0040a53bfdaf6189fee5b5d7a (patch)
tree3ed24e9a97dd0876335e5380b5c86f042353ed99 /plugins/mod_disco.lua
parent47fc58cc4be0f4dc87cfbea60b6492ae736c7596 (diff)
downloadprosody-8c6fe5a36d56ceb0040a53bfdaf6189fee5b5d7a.tar.gz
prosody-8c6fe5a36d56ceb0040a53bfdaf6189fee5b5d7a.zip
mod_disco: Respond to disco#info to the correct caps hash node ("node#ver").
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index cf6030f7..984d4599 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -87,7 +87,7 @@ module:hook("iq/host/http://jabber.org/protocol/disco#info:query", function(even
local origin, stanza = event.origin, event.stanza;
if stanza.attr.type ~= "get" then return; end
local node = stanza.tags[1].attr.node;
- if node and node ~= "" and node ~= get_server_caps_hash() then return; end -- TODO fire event?
+ if node and node ~= "" and node ~= "http://prosody.im#"..get_server_caps_hash() then return; end -- TODO fire event?
local reply = st.reply(stanza):add_child(get_server_disco_info());
origin.send(reply);
return true;