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-13 08:05:49 +01:00
parent c3586712e5
commit 4f6ebf9a43
5 changed files with 15 additions and 5 deletions
+5 -2
View File
@@ -9,6 +9,9 @@
message_admins("Admin logout: [key_name(src)]")
if(admins_number == 0) //Apparently the admin logging out is no longer an admin at this point, so we have to check this towards 0 and not towards 1. Awell.
send2adminirc("[key_name(src)] logged out - no more admins online.")
..()
if(config.delist_when_no_admins && world.visibility)
world.visibility = FALSE
send2adminirc("Toggled hub visibility. The server is now invisible ([world.visibility]).")
return 1
..()
return 1