Stops the dbadmin warning if SQL_ENABLED isnt set (#34223)

This commit is contained in:
Jordan Brown
2018-01-11 01:52:06 -08:00
committed by CitadelStationBot
parent b2021912d7
commit ab71f0293b
2 changed files with 7 additions and 3 deletions

View File

@@ -143,8 +143,10 @@ GLOBAL_PROTECT(admin_ranks)
previous_rights = R.rights
else
if(!SSdbcore.Connect())
log_world("Failed to connect to database in load_admin_ranks(). Reverting to legacy system.")
WRITE_FILE(GLOB.world_game_log, "Failed to connect to database in load_admin_ranks(). Reverting to legacy system.")
if(CONFIG_GET(flag/sql_enabled))
var/msg = "Failed to connect to database in load_admin_ranks(). Reverting to legacy system."
log_world(msg)
WRITE_FILE(GLOB.world_game_log, msg)
CONFIG_SET(flag/admin_legacy_system, TRUE)
load_admin_ranks()
return