# HG changeset patch # User Matthew Wild # Date 1637063672 0 # Node ID b33d71c43ac00a0219a51d97d62c9978ffb6ba0e # Parent 624c14b77bb47ad35a1120d7c9c856d380849d82 MUC: Fix incorrect variable name (thanks luacheck) diff -r 624c14b77bb4 -r b33d71c43ac0 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Nov 16 11:52:36 2021 +0000 +++ b/plugins/muc/muc.lib.lua Tue Nov 16 11:54:32 2021 +0000 @@ -1434,7 +1434,7 @@ }; 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