mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Adds a config option to automatically delist the server from the BYOND up when there are no admins.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user