Remove last known usage of deprecated in Lua 5.1 `arg`
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
7ef7fe7e03
commit
b4cc392e23
|
@ -305,7 +305,7 @@ function table.keys_filter(t, ...)
|
||||||
local keys = table.keys(t)
|
local keys = table.keys(t)
|
||||||
local keys_filtered = { }
|
local keys_filtered = { }
|
||||||
for _, k in pairs(keys) do
|
for _, k in pairs(keys) do
|
||||||
for _, et in pairs(arg) do
|
for _, et in pairs({...}) do
|
||||||
if type(t[k]) == et then
|
if type(t[k]) == et then
|
||||||
rtable.insert(keys_filtered, k)
|
rtable.insert(keys_filtered, k)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue