diff options
author | Marco Cirillo <maranda@lightwitch.org> | 2012-05-10 23:37:36 +0000 |
---|---|---|
committer | Marco Cirillo <maranda@lightwitch.org> | 2012-05-10 23:37:36 +0000 |
commit | d0b87d8ac6edb12b2eb1b0550fe4e273e8720446 (patch) | |
tree | 565468fb20b71ae5d032d17accf9b5fe6ed97bcc /plugins/muc | |
parent | cc7ad75d41df63cd968f5b2ffd920cd99671274f (diff) | |
download | prosody-d0b87d8ac6edb12b2eb1b0550fe4e273e8720446.tar.gz prosody-d0b87d8ac6edb12b2eb1b0550fe4e273e8720446.zip |
muc.lib: return feature-not-implemented when a foregoing discovery node is specified in a disco#info request.
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 9be1736f..0203df26 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -744,7 +744,11 @@ function room_mt:handle_to_room(origin, stanza) -- presence changes and groupcha 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 |