plugins/muc/muc.lib.lua
changeset 10761 9dec7cddb40b
parent 10716 dc24a8783c5d
parent 10757 925081396c59
child 10808 4dc57789f51b
--- a/plugins/muc/muc.lib.lua	Mon Apr 20 11:30:59 2020 +0100
+++ b/plugins/muc/muc.lib.lua	Thu Apr 23 13:52:19 2020 +0100
@@ -144,7 +144,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