MUC: Add luacheck annotation for unused parameter in filter function 0.11
authorMatthew Wild <mwild1@gmail.com>
Wed, 31 Oct 2018 13:28:02 +0000
branch0.11
changeset 9607 4897bd63f624
parent 9606 b250ffdfae3f
child 9608 88c011d01b98
MUC: Add luacheck annotation for unused parameter in filter function
plugins/muc/util.lib.lua
--- a/plugins/muc/util.lib.lua	Wed Oct 31 13:18:01 2018 +0000
+++ b/plugins/muc/util.lib.lua	Wed Oct 31 13:28:02 2018 +0000
@@ -57,7 +57,7 @@
 
 function _M.only_with_min_role(role)
 	local min_role_value = _M.valid_roles[role];
-	return function (nick, occupant)
+	return function (nick, occupant) --luacheck: ignore 212/nick
 		if _M.valid_roles[occupant.role or "none"] >= min_role_value then
 			return true;
 		end