aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-14 12:05:47 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-14 12:05:47 +0100
commitc283ec08b07ee1429962f0e5b534a419c01eead2 (patch)
tree76a31f8e259e7acfd0f703810ff80d8b567f3aac /plugins/muc/muc.lib.lua
parent213be6f9a19beb76264a8a9eceee7ff468b9013b (diff)
downloadprosody-c283ec08b07ee1429962f0e5b534a419c01eead2.tar.gz
prosody-c283ec08b07ee1429962f0e5b534a419c01eead2.zip
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 79fdd6e5..341a848d 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -965,7 +965,8 @@ function room_mt:handle_admin_query_get_command(origin, stanza)
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;