diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-09-13 15:11:08 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-09-13 15:11:08 +0100 |
commit | d7abfeeae5476017c8f5316d25201625c3f7ea98 (patch) | |
tree | 030043ea7fe389f561e4e4826dc5fa18ed2dc54c /plugins/muc/muc.lib.lua | |
parent | 235281229dc3626581aeb409ac4db1c04fb39f72 (diff) | |
download | prosody-d7abfeeae5476017c8f5316d25201625c3f7ea98.tar.gz prosody-d7abfeeae5476017c8f5316d25201625c3f7ea98.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.lua | 2 |
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 }; |