aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-11-16 11:54:32 +0000
committerMatthew Wild <mwild1@gmail.com>2021-11-16 11:54:32 +0000
commitbfd0d0a8a92b811feffed1fb48c1a7f85a1e8f31 (patch)
treec26db9ce74b3b90e0af160d9c172d4a1dd3e2292
parent366126e90fa9dacc7ee9b1242d82ecd18e11cc65 (diff)
downloadprosody-bfd0d0a8a92b811feffed1fb48c1a7f85a1e8f31.tar.gz
prosody-bfd0d0a8a92b811feffed1fb48c1a7f85a1e8f31.zip
MUC: Fix incorrect variable name (thanks luacheck)
-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