aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index bf5f093d..a62ad5c5 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1429,7 +1429,7 @@ function room_mt:set_affiliation(actor, jid, affiliation, reason, data)
jid = jid;
affiliation = affiliation or "none";
reason = reason;
- previous_affiliation = target_affiliation;
+ previous_affiliation = target_affiliation or "none";
data = data and data or nil; -- coerce false to nil
};