Update [mysql_auth], fix xban2 using minetest.auth_table directly

master
Dorian Wouters 2016-08-22 19:03:24 +02:00
parent 1c5fbd3552
commit 7adfc3269b
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B
2 changed files with 3 additions and 2 deletions

@ -1 +1 @@
Subproject commit 333fc8916e05a1d53e5549158980d23d585a7b88
Subproject commit 5cebbaf03c18f8fccfc188f34af864dd3008fbf9

View File

@ -9,7 +9,8 @@ local ESC = minetest.formspec_escape
local function make_list(filter)
filter = filter or ""
local list, n, dropped = { }, 0, false
for k in pairs(minetest.auth_table) do
local enumerate = minetest.get_auth_handler().enumerate_auths
for k in enumerate and enumerate() or pairs(minetest.auth_table) do
if strfind(k, filter, 1, true) then
if n >= MAXLISTSIZE then
dropped = true