From bfd0d0a8a92b811feffed1fb48c1a7f85a1e8f31 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 16 Nov 2021 11:54:32 +0000 Subject: MUC: Fix incorrect variable name (thanks luacheck) --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc') 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 -- cgit v1.2.3