From b41df538c72c7e9a26f9ff08f2668769c8d1a1d1 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sat, 4 May 2024 09:06:03 +0200 Subject: switch "has" to "has_all_of" and "has_any_of" --- system/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/init.lua b/system/init.lua index c3ea94d..93dd488 100644 --- a/system/init.lua +++ b/system/init.lua @@ -154,7 +154,7 @@ function sys.listconsoleflags(fh) local out = {} for k,v in pairs(sys) do if type(k) == "string" and k:sub(1,4) == flagtype then - if flags:has(v) then + if flags:has_all_of(v) then out[#out+1] = string.format("%10d [x] %s",v:value(),k) else out[#out+1] = string.format("%10d [ ] %s",v:value(),k) @@ -191,7 +191,7 @@ function sys.listtermflags(fh) local out = {} for k,v in pairs(sys) do if type(k) == "string" and k:sub(1,2) == prefix then - if flags[flagtype]:has(v) then + if flags[flagtype]:has_all_of(v) then out[#out+1] = string.format("%10d [x] %s",v:value(),k) else out[#out+1] = string.format("%10d [ ] %s",v:value(),k) -- cgit v1.2.3-55-g6feb