Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 4839:4905aed00382
muc.lib: return feature-not-implemented when a foregoing discovery node is specified in a disco#info request.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Thu, 10 May 2012 23:37:36 +0000 |
parent | 4785:36234dc4b177 |
child | 4874:4e9781a61242 |
line wrap: on
line diff
--- 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