mod_disco: Respond to disco#info to the correct caps hash node ("node#ver").

Sun, 11 Jul 2010 23:51:40 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 11 Jul 2010 23:51:40 +0500
changeset 3348
3b84a84f472a
parent 3347
99f56bed5228
child 3349
a416d714a905

mod_disco: Respond to disco#info to the correct caps hash node ("node#ver").

plugins/mod_disco.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_disco.lua	Sun Jul 11 21:21:38 2010 +0500
+++ b/plugins/mod_disco.lua	Sun Jul 11 23:51:40 2010 +0500
@@ -87,7 +87,7 @@
 	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;

mercurial