Software /
code /
prosody
Changeset
11143:818255f49297
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Oct 2020 13:36:24 +0200 |
parents | 11141:a5acd6354845 (current diff) 11142:552cafd30eb2 (diff) |
children | 11144:2b9f7c537acb |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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 {