diff --git a/code/modules/client/verbs/autobunker.dm b/code/modules/client/verbs/autobunker.dm index 8954901eef..03200c5f0b 100644 --- a/code/modules/client/verbs/autobunker.dm +++ b/code/modules/client/verbs/autobunker.dm @@ -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, "Function on cooldown, try again in 5 seconds.") 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, "AUTOBUNKER: No servers are configured to receive from this one.") 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)