aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-07 13:33:02 +0200
committerKim Alvefur <zash@zash.se>2020-10-07 13:33:02 +0200
commit0e0a75de4e809665f97aabb781503f8be48c8f80 (patch)
treeb4d672d262bcbf6a3d6d60553d2d1b174446d936 /plugins
parentc91cc915b61f11526e99bf16910d3ecba923c1a8 (diff)
downloadprosody-0e0a75de4e809665f97aabb781503f8be48c8f80.tar.gz
prosody-0e0a75de4e809665f97aabb781503f8be48c8f80.zip
MUC: Preserve disco 'node' attribute (or lack thereof) in response (fix #1595) (thanks lessthan3)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 93334b88..3139c131 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -336,12 +336,12 @@ function room_mt:send_occupant_list(to, filter)
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 {