Mercurial > prosody-modules
changeset 6542:d7162714f8b2
mod_muc_mav: fix order of operations
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Tue, 19 May 2026 09:35:53 -0500 |
| parents | 03c80b7308bf |
| children | 19bee2a6436a |
| 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 Tue May 19 09:15:06 2026 -0500 +++ b/mod_muc_mav/mod_muc_mav.lua Tue May 19 09:35:53 2026 -0500 @@ -19,7 +19,7 @@ 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 or nil; - local show_jid = not room:is_anonymous_for(from) or util_jid.bare(from) == jid and jid 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(); end
