diff --git a/lib/shifty.lua b/lib/shifty.lua index 7f21602..3bbf48d 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -535,7 +535,7 @@ function match(c, startup) -- match only role if not matched and role and a.match.role then for k, w in ipairs(a.match.role) do - matched = role:find(w) + matched = (role == w) if matched then break end