Fix awful.rules.does_match: use _rules as arg

This commit is contained in:
Daniel Hahler 2015-08-28 19:56:12 +02:00
parent ad9e57d0c1
commit 285f24d234

View file

@ -148,11 +148,11 @@ end
--- Check if a client matches a given set of rules.
-- @client c The client.
-- @tab rules The rules to check. List with "rule", "rule_any", "except" and
-- @tab _rules The rules to check. List with "rule", "rule_any", "except" and
-- "except_any" keys.
-- @treturn bool True if at least one rule is matched, false otherwise.
function rules.does_match(c, rules)
local result = rules.matching_rules(c, rules)
function rules.does_match(c, _rules)
local result = rules.matching_rules(c, _rules)
return #result == 0 and false or result
end