From 8c6fe5a36d56ceb0040a53bfdaf6189fee5b5d7a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 11 Jul 2010 23:51:40 +0500 Subject: mod_disco: Respond to disco#info to the correct caps hash node ("node#ver"). --- plugins/mod_disco.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_disco.lua') 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; -- cgit v1.2.3