aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-13 15:11:08 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-13 15:11:08 +0100
commitd795c3994ad0acacf92b9afed237ff0b81fcd658 (patch)
tree030043ea7fe389f561e4e4826dc5fa18ed2dc54c /plugins/muc/muc.lib.lua
parent69ef24b16a23ec3fbbf0c935977319f9000adfd4 (diff)
downloadprosody-d795c3994ad0acacf92b9afed237ff0b81fcd658.tar.gz
prosody-d795c3994ad0acacf92b9afed237ff0b81fcd658.zip
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
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 };