diff plugins/muc/muc.lib.lua @ 4846:3bc3498df0a0

Merge with Maranda
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 01:53:32 +0100
parents 4905aed00382
children 4e9781a61242
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri May 11 00:56:18 2012 +0100
+++ b/plugins/muc/muc.lib.lua	Fri May 11 01:53:32 2012 +0100
@@ -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