Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 9312:6cab07323274
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Sep 2018 12:05:47 +0100 |
parent | 9299:2466b533f63d |
child | 9315:a47bba3b35f3 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Thu Sep 13 21:09:55 2018 +0200 +++ b/plugins/muc/muc.lib.lua Fri Sep 14 12:05:47 2018 +0100 @@ -965,7 +965,8 @@ or self:get_members_only() and self:get_whois() == "anyone" and affiliation_rank >= valid_affiliations.member then local reply = st.reply(stanza):query("http://jabber.org/protocol/muc#admin"); for jid in self:each_affiliation(_aff or "none") do - reply:tag("item", {affiliation = _aff, jid = jid}):up(); + local nick = self:get_registered_nick(jid); + reply:tag("item", {affiliation = _aff, jid = jid, nick = nick }):up(); end origin.send(reply:up()); return true;