comparison mod_muc_rtbl/mod_muc_rtbl.lua @ 4811:a1fe59c06c48

mod_muc_rtbl: Fix typo in variable name in previous commit (thanks luacheck)
author Matthew Wild <mwild1@gmail.com>
date Mon, 06 Dec 2021 12:26:16 +0000
parents 181738ae4117
children 9cdbb1b5e6f2
comparison
equal deleted inserted replaced
4810:181738ae4117 4811:a1fe59c06c48
93 93
94 module:hook("muc-occupant-pre-join", function (event) 94 module:hook("muc-occupant-pre-join", function (event)
95 local from_bare = jid.bare(event.stanza.attr.from); 95 local from_bare = jid.bare(event.stanza.attr.from);
96 96
97 local affiliation = event.room:get_affiliation(from_bare); 97 local affiliation = event.room:get_affiliation(from_bare);
98 if affiliation and affilition ~= "none" then 98 if affiliation and affiliation ~= "none" then
99 -- Skip check for affiliated users 99 -- Skip check for affiliated users
100 return; 100 return;
101 end 101 end
102 102
103 local hash = sha256(jid.bare(event.stanza.attr.from), true); 103 local hash = sha256(jid.bare(event.stanza.attr.from), true);