mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Add an event to config reloading that can be used to trigger a config sync (#90329)
This commit is contained in:
@@ -211,7 +211,11 @@ GLOBAL_PROTECT(protected_ranks)
|
||||
|
||||
/// (Re)Loads the admin list.
|
||||
/// returns TRUE if database admins had to be loaded from the backup json
|
||||
/proc/load_admins(no_update)
|
||||
/proc/load_admins(no_update, initial = FALSE)
|
||||
if(!initial)
|
||||
if(!global.config.PreConfigReload())
|
||||
return
|
||||
|
||||
var/dbfail
|
||||
if(!CONFIG_GET(flag/admin_legacy_system) && !SSdbcore.Connect())
|
||||
message_admins("Failed to connect to database while loading admins. Loading from backup.")
|
||||
|
||||
Reference in New Issue
Block a user