plugins/muc/muc.lib.lua
changeset 4839 4905aed00382
parent 4785 36234dc4b177
child 4874 4e9781a61242
--- 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