fix crashes for offline player handling

0.4
shivajiva101 2017-11-03 11:05:40 +00:00 committed by GitHub
parent 107263669e
commit b8e0e86309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ sauth.auth_handler = {
sauth.auth_handler.create_auth(name, password)
else
update_password(name, password)
auth_table[name].password = password
if auth_table[name] then auth_table[name].password = password end
end
return true
end,
@ -224,7 +224,7 @@ sauth.auth_handler = {
minetest.settings:get("default_password")))
end
update_privileges(name, minetest.privs_to_string(privs))
auth_table[name].privileges = privs
if auth_table[name] then auth_table[name].privileges = privs end
minetest.notify_authentication_modified(name)
return true
end,