Software /
code /
prosody
Changeset
11909:b33d71c43ac0
MUC: Fix incorrect variable name (thanks luacheck)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 16 Nov 2021 11:54:32 +0000 |
parents | 11908:624c14b77bb4 |
children | 11910:3a8ec48f7333 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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