Update autobunker.dm

This commit is contained in:
silicons
2020-07-04 00:14:32 -07:00
committed by GitHub
parent ae5fb008c7
commit 03aa8fcc2b
+3 -6
View File
@@ -3,11 +3,10 @@
set desc = "Authorizes your account in the panic bunker of any servers connected to this function."
set category = "OOC"
var/static/lastuse = 0
if(lastuse + 5 SECONDS > world.time)
if(autobunker_last_try + 5 SECONDS > world.time)
to_chat(src, "<span class='danger'>Function on cooldown, try again in 5 seconds.</span>")
return
lastuse = world.time
autobunker_last_try = world.time
world.send_cross_server_bunker_overrides(key, src)
@@ -24,9 +23,7 @@
if(!length(servers))
to_chat(C, "<span class='boldwarning'>AUTOBUNKER: No servers are configured to receive from this one.</span>")
return
var/logtext = "[key] ([key_name(C)]) has initiated an autobunker authentication with linked servers."
message_admins(logtext)
log_admin(logtext)
log_admin("[key] ([key_name(C)]) has initiated an autobunker authentication with linked servers.")
for(var/name in servers)
var/returned = world.Export("[servers[name]]?[list2params(message)]")
switch(returned)