aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8d8fb2c1..bf5f093d 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1434,7 +1434,7 @@ function room_mt:set_affiliation(actor, jid, affiliation, reason, data)
};
module:fire_event("muc-pre-set-affiliation", event_data);
- if event.allowed == false then
+ if event_data.allowed == false then
local err = event_data.error or { type = "cancel", condition = "not-allowed" };
return nil, err.type, err.condition;
end