diff options
Diffstat (limited to 'player/lua/auto_profiles.lua')
-rw-r--r-- | player/lua/auto_profiles.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/player/lua/auto_profiles.lua b/player/lua/auto_profiles.lua index 55394c2e26..b2381b2ab1 100644 --- a/player/lua/auto_profiles.lua +++ b/player/lua/auto_profiles.lua @@ -25,11 +25,8 @@ local function evaluate(profile) -- errors can be "normal", e.g. in case properties are unavailable msg.verbose("Profile condition error on evaluating: " .. res) res = false - elseif type(res) ~= "boolean" then - msg.verbose("Profile condition did not return a boolean, but " - .. type(res) .. ".") - res = false end + res = not not res if res ~= profile.status then if res == true then msg.info("Applying auto profile: " .. profile.name) |