Software /
code /
prosody
Changeset
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 |
parents | 4838:661752889535 |
children | 4841:ce793cea9f10 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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