# HG changeset patch # User Marco Cirillo # Date 1336693056 0 # Node ID 4905aed003826e3c985e089f95f7b40ae19eb174 # Parent 661752889535a45f814ba24152314c80571781fd muc.lib: return feature-not-implemented when a foregoing discovery node is specified in a disco#info request. diff -r 661752889535 -r 4905aed00382 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu May 10 12:54:37 2012 +0000 +++ b/plugins/muc/muc.lib.lua Thu May 10 23:37:36 2012 +0000 @@ -744,7 +744,11 @@ local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns; if stanza.name == "iq" then if xmlns == "http://jabber.org/protocol/disco#info" and type == "get" then - origin.send(self:get_disco_info(stanza)); + if stanza.tags[1].attr.node then + origin.send(st.error_reply(stanza, "cancel", "feature-not-implemented")); + else + origin.send(self:get_disco_info(stanza)); + end elseif xmlns == "http://jabber.org/protocol/disco#items" and type == "get" then origin.send(self:get_disco_items(stanza)); elseif xmlns == "http://jabber.org/protocol/muc#admin" then