Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9299:2466b533f63d
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 13 Sep 2018 15:11:08 +0100 |
parent | 9265:585ef5c1b226 |
child | 9312:6cab07323274 |
comparison
equal
deleted
inserted
replaced
9298:2d71040a959f | 9299:2466b533f63d |
---|---|
335 end | 335 end |
336 end | 336 end |
337 | 337 |
338 function room_mt:get_disco_info(stanza) | 338 function room_mt:get_disco_info(stanza) |
339 local node = stanza.tags[1].attr.node or ""; | 339 local node = stanza.tags[1].attr.node or ""; |
340 local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#info", { node = node }); | 340 local reply = st.reply(stanza):tag("query", { xmlns = "http://jabber.org/protocol/disco#info", node = node }); |
341 local event_name = "muc-disco#info"; | 341 local event_name = "muc-disco#info"; |
342 local event_data = { room = self, reply = reply, stanza = stanza }; | 342 local event_data = { room = self, reply = reply, stanza = stanza }; |
343 | 343 |
344 if node ~= "" then | 344 if node ~= "" then |
345 event_name = event_name.."/"..node; | 345 event_name = event_name.."/"..node; |