From d795c3994ad0acacf92b9afed237ff0b81fcd658 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 13 Sep 2018 15:11:08 +0100 Subject: MUC: Fix to correctly return 'node' in disco#info responses (thanks jc) --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/muc.lib.lua') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index c51f53e8..79fdd6e5 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -337,7 +337,7 @@ end function room_mt:get_disco_info(stanza) local node = stanza.tags[1].attr.node or ""; - local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#info", { node = node }); + local reply = st.reply(stanza):tag("query", { xmlns = "http://jabber.org/protocol/disco#info", node = node }); local event_name = "muc-disco#info"; local event_data = { room = self, reply = reply, stanza = stanza }; -- cgit v1.2.3