Update admin's privs in the DB when calling get_auth (1-time)

This commit is contained in:
Dorian Wouters 2016-08-22 12:52:32 +02:00
parent 09b4809eb8
commit 333fc8916e
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B
1 changed files with 4 additions and 0 deletions

View File

@ -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