Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 11143:818255f49297
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Oct 2020 13:36:24 +0200 |
parent | 10805:d17392022cb2 |
parent | 11142:552cafd30eb2 |
child | 11236:b1d7027be61e |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Oct 05 22:19:55 2020 +0200 +++ b/plugins/muc/muc.lib.lua Wed Oct 07 13:36:24 2020 +0200 @@ -372,12 +372,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 {