# HG changeset patch # User Kim Alvefur # Date 1602070382 -7200 # Node ID 552cafd30eb25a6f831636af636c96faa2fbe172 # Parent e17b98feb0b7cad6539ee25c5cc7728911349a6d MUC: Preserve disco 'node' attribute (or lack thereof) in response (fix #1595) (thanks lessthan3) diff -r e17b98feb0b7 -r 552cafd30eb2 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Mon Oct 05 22:12:29 2020 +0200 +++ b/plugins/muc/muc.lib.lua Wed Oct 07 13:33:02 2020 +0200 @@ -336,12 +336,12 @@ end function room_mt:get_disco_info(stanza) - local node = stanza.tags[1].attr.node or ""; + local node = stanza.tags[1].attr.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 }; - if node ~= "" then + if node and node ~= "" then event_name = event_name.."/"..node; else event_data.form = dataform.new {