diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-05-04 09:06:03 +0200 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-05-04 09:06:03 +0200 |
| commit | b41df538c72c7e9a26f9ff08f2668769c8d1a1d1 (patch) | |
| tree | 59820cae6b9edb014520487f5d2b0c9f91bc6b17 /system | |
| parent | fdf62fe6c4125d29b3097e49566b2bbe1f650382 (diff) | |
| download | luasystem-b41df538c72c7e9a26f9ff08f2668769c8d1a1d1.tar.gz luasystem-b41df538c72c7e9a26f9ff08f2668769c8d1a1d1.tar.bz2 luasystem-b41df538c72c7e9a26f9ff08f2668769c8d1a1d1.zip | |
switch "has" to "has_all_of" and "has_any_of"
Diffstat (limited to 'system')
| -rw-r--r-- | system/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
| 154 | local out = {} | 154 | local out = {} |
| 155 | for k,v in pairs(sys) do | 155 | for k,v in pairs(sys) do |
| 156 | if type(k) == "string" and k:sub(1,4) == flagtype then | 156 | if type(k) == "string" and k:sub(1,4) == flagtype then |
| 157 | if flags:has(v) then | 157 | if flags:has_all_of(v) then |
| 158 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) | 158 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) |
| 159 | else | 159 | else |
| 160 | out[#out+1] = string.format("%10d [ ] %s",v:value(),k) | 160 | out[#out+1] = string.format("%10d [ ] %s",v:value(),k) |
| @@ -191,7 +191,7 @@ function sys.listtermflags(fh) | |||
| 191 | local out = {} | 191 | local out = {} |
| 192 | for k,v in pairs(sys) do | 192 | for k,v in pairs(sys) do |
| 193 | if type(k) == "string" and k:sub(1,2) == prefix then | 193 | if type(k) == "string" and k:sub(1,2) == prefix then |
| 194 | if flags[flagtype]:has(v) then | 194 | if flags[flagtype]:has_all_of(v) then |
| 195 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) | 195 | out[#out+1] = string.format("%10d [x] %s",v:value(),k) |
| 196 | else | 196 | else |
| 197 | out[#out+1] = string.format("%10d [ ] %s",v:value(),k) | 197 | out[#out+1] = string.format("%10d [ ] %s",v:value(),k) |
