Software /
code /
prosody
Changeset
10753:925081396c59 0.11
MUC: Always include 'affiliation'/'role' attributes, defaulting to 'none' if nil
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 23 Apr 2020 13:16:25 +0100 |
parents | 10721:3a1b1d3084fb |
children | 10754:18f2c7bc5795 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Aug 25 20:22:35 2019 +0200 +++ b/plugins/muc/muc.lib.lua Thu Apr 23 13:16:25 2020 +0100 @@ -143,7 +143,7 @@ -- actor is the attribute table local function add_item(x, affiliation, role, jid, nick, actor_nick, actor_jid, reason) - x:tag("item", {affiliation = affiliation; role = role; jid = jid; nick = nick;}) + x:tag("item", {affiliation = affiliation or "none"; role = role; jid = jid; nick = nick;}) if actor_nick or actor_jid then x:tag("actor", {nick = actor_nick; jid = actor_jid;}):up() end