Mercurial > prosody-modules
changeset 6541:03c80b7308bf
mod_muc_mav: stanza attribute cannot be a boolean
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Tue, 19 May 2026 09:15:06 -0500 |
| parents | 7cb25e7d945d |
| children | d7162714f8b2 |
| files | mod_muc_mav/mod_muc_mav.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_mav/mod_muc_mav.lua Mon May 18 10:23:58 2026 -0500 +++ b/mod_muc_mav/mod_muc_mav.lua Tue May 19 09:15:06 2026 -0500 @@ -18,7 +18,7 @@ for jid, affiliation, affiliation_data in room:each_affiliation() do table.insert(jid_affiliations, jid.."\0"..affiliation); local occupant_id = room:get_occupant_id_from_jid(jid); - local nick = affiliation_data and affiliation_data.reserved_nickname; + local nick = affiliation_data and affiliation_data.reserved_nickname or nil; local show_jid = not room:is_anonymous_for(from) or util_jid.bare(from) == jid and jid or nil x:tag("item", {affiliation = affiliation or "none"; jid = show_jid; nick = nick;}) :tag("occupant-id", { xmlns = xmlns_occupant_id, id = occupant_id }):up():up();
