# HG changeset patch # User Stephen Paul Weber # Date 1779201353 18000 # Node ID d7162714f8b203d37241e1a8a565955e8749eada # Parent 03c80b7308bf61f6a8fd5d7c1212524fb0034378 mod_muc_mav: fix order of operations diff -r 03c80b7308bf -r d7162714f8b2 mod_muc_mav/mod_muc_mav.lua --- 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