Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Use auth_handler's enumerate_auths (not auth_table) if available
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementW committed Aug 22, 2016
1 parent 974b47f commit d200b34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d200b34

Please sign in to comment.