Comparison

plugins/muc/util.lib.lua @ 9606:cb684a0ded2a

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 31 Oct 2018 14:34:35 +0000
parent 9603:4897bd63f624
child 10713:38159b9adf9f
comparison
equal deleted inserted replaced
9600:ae0aca2c0ebb 9606:cb684a0ded2a
55 return stanza:maptags(muc_x_filter); 55 return stanza:maptags(muc_x_filter);
56 end 56 end
57 57
58 function _M.only_with_min_role(role) 58 function _M.only_with_min_role(role)
59 local min_role_value = _M.valid_roles[role]; 59 local min_role_value = _M.valid_roles[role];
60 return function (nick, occupant) 60 return function (nick, occupant) --luacheck: ignore 212/nick
61 if _M.valid_roles[occupant.role or "none"] >= min_role_value then 61 if _M.valid_roles[occupant.role or "none"] >= min_role_value then
62 return true; 62 return true;
63 end 63 end
64 end; 64 end;
65 end 65 end