mirror of
https://github.com/minetest-mods/xban2.git
synced 2025-06-29 06:50:25 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8fde3c240f | |||
d200b342e9 |
4
gui.lua
4
gui.lua
@ -9,7 +9,9 @@ local ESC = minetest.formspec_escape
|
|||||||
local function make_list(filter)
|
local function make_list(filter)
|
||||||
filter = filter or ""
|
filter = filter or ""
|
||||||
local list, n, dropped = { }, 0, false
|
local list, n, dropped = { }, 0, false
|
||||||
for k in pairs(minetest.auth_table) do
|
local enumerate, e1, e2, e3 = minetest.get_auth_handler().enumerate_auths
|
||||||
|
if enumerate then e1 = enumerate() else e1, e2, e3 = pairs(minetest.auth_table) end
|
||||||
|
for k in e1, e2, e3 do
|
||||||
if strfind(k, filter, 1, true) then
|
if strfind(k, filter, 1, true) then
|
||||||
if n >= MAXLISTSIZE then
|
if n >= MAXLISTSIZE then
|
||||||
dropped = true
|
dropped = true
|
||||||
|
Reference in New Issue
Block a user