Adds a config option to automatically delist the server from the BYOND up when there are no admins.

This commit is contained in:
PsiOmegaDelta
2016-01-12 18:02:52 +01:00
parent c3586712e5
commit 4f6ebf9a43
5 changed files with 15 additions and 5 deletions

View File

@@ -219,6 +219,7 @@ var/list/gamemode_cache = list()
var/list/language_prefixes = list(",","#","-")//Default language prefixes
var/ghosts_can_possess_animals = 0
var/delist_when_no_admins = FALSE
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -707,6 +708,9 @@ var/list/gamemode_cache = list()
if ("lobby_screens")
config.lobby_screens = text2list(value, ";")
if("delist_when_no_admins")
config.delist_when_no_admins = TRUE
else
log_misc("Unknown setting in configuration: '[name]'")