Adds config to allow ranks only from txt

This commit is contained in:
Jordan Brown
2018-03-28 13:01:41 -05:00
committed by CitadelStationBot
parent 77f40b6be9
commit 4629039c38
5 changed files with 54 additions and 24 deletions
+1 -1
View File
@@ -504,7 +504,7 @@
/datum/controller/subsystem/ticker/proc/save_admin_data()
if(CONFIG_GET(flag/admin_legacy_system)) //we're already using legacy system so there's nothing to save
return
else if(load_admins()) //returns true if there was a database failure and the backup was loaded from
else if(load_admins(TRUE)) //returns true if there was a database failure and the backup was loaded from
return
var/datum/DBQuery/query_admin_rank_update = SSdbcore.NewQuery("UPDATE [format_table_name("player")] p INNER JOIN [format_table_name("admin")] a ON p.ckey = a.ckey SET p.lastadminrank = a.rank")
query_admin_rank_update.Execute()