Software /
code /
prosody-modules
Changeset
3904:d14fc974efbc
mod_muc_occupant_id: id is an attribute not a text node
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Tue, 25 Feb 2020 17:06:22 +0100 |
parents | 3903:cfeb93b80621 |
children | 3905:5ae2e865eea0 |
files | mod_muc_occupant_id/mod_muc_occupant_id.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_occupant_id/mod_muc_occupant_id.lua Sun Feb 23 21:36:53 2020 +0000 +++ b/mod_muc_occupant_id/mod_muc_occupant_id.lua Tue Feb 25 17:06:22 2020 +0100 @@ -36,9 +36,7 @@ stanza:remove_children("occupant-id", xmlns_occupant_id); local unique_id = generate_id(occupant, room); - stanza:tag("occupant-id", { xmlns = xmlns_occupant_id }) - :text(unique_id) - :up(); + stanza:tag("occupant-id", { xmlns = xmlns_occupant_id, id = unique_id }):up(); end module:add_feature(xmlns_occupant_id);