From 333fc8916e05a1d53e5549158980d23d585a7b88 Mon Sep 17 00:00:00 2001 From: Dorian Wouters Date: Mon, 22 Aug 2016 12:52:32 +0200 Subject: [PATCH] Update admin's privs in the DB when calling get_auth (1-time) --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 33229fa..c80afcb 100644 --- a/init.lua +++ b/init.lua @@ -265,6 +265,10 @@ do privs[priv] = true end end + if admin and not thismod.admin_get_auth_called then + thismod.admin_get_auth_called = true + thismod.auth_handler.set_privileges(name, privs) + end else privs = minetest.string_to_privs(privs_str) end