diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 3f918cd1754..5a85935ad44 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -534,15 +534,14 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( if(!query_client_in_db.Execute()) qdel(query_client_in_db) return - - //SKYRAT EDIT ADDITION BEGIN - PANICBUNKER - if (CONFIG_GET(flag/panic_bunker) && !holder && !GLOB.deadmins[ckey] && !(ckey in GLOB.bunker_passthrough)) +/* + //If we aren't an admin, and the flag is set + if(CONFIG_GET(flag/panic_bunker) && !holder && !GLOB.deadmins[ckey]) var/living_recs = CONFIG_GET(number/panic_bunker_living) //Relies on pref existing, but this proc is only called after that occurs, so we're fine. var/minutes = get_exp_living(pure_numeric = TRUE) if(minutes <= living_recs && !CONFIG_GET(flag/panic_bunker_interview)) var/reject_message = "Failed Login: [key] - Account attempting to connect during panic bunker, but they do not have the required living time [minutes]/[living_recs]" - to_chat(src, {"Hi! We have temporarily enabled safety measures that prevents new players from joining currently.
Please try again later, or contact a staff on Discord if you have any questions.

To join our community, check out our Discord! To gain full access to our Discord, read the rules and post a request in the #access-requests channel under the \"Landing Zone\" category in the Discord server linked here: https://discord.gg/6RpdCgR
"}) //skyrat-edit log_access(reject_message) message_admins("[reject_message]") var/message = CONFIG_GET(string/panic_bunker_message) @@ -558,8 +557,24 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( qdel(query_client_in_db) qdel(src) return - //SKYRAT EDIT END +*/ if(!query_client_in_db.NextRow()) + //SKYRAT EDIT ADDITION BEGIN - PANICBUNKER + if (CONFIG_GET(flag/panic_bunker) && !holder && !GLOB.deadmins[ckey] && !(ckey in GLOB.bunker_passthrough)) + log_access("Failed Login: [key] - [address] - New account attempting to connect during panic bunker") + message_admins("Failed Login: [key] - [address] - New account attempting to connect during panic bunker") + to_chat(src, {"Hi! We have temporarily enabled safety measures that prevents new players from joining currently.
Please try again later, or contact a staff on Discord if you have any questions.

To join our community, check out our Discord! To gain full access to our Discord, read the rules and post a request in the #access-requests channel under the \"Landing Zone\" category in the Discord server linked here: https://discord.gg/6RpdCgR
"}) //skyrat-edit + var/list/connectiontopic_a = params2list(connectiontopic) + var/list/panic_addr = CONFIG_GET(string/panic_server_address) + if(panic_addr && !connectiontopic_a["redirect"]) + var/panic_name = CONFIG_GET(string/panic_server_name) + to_chat(src, "Sending you to [panic_name ? panic_name : panic_addr].") + winset(src, null, "command=.options") + src << link("[panic_addr]?redirect=1") + qdel(query_client_in_db) + qdel(src) + return + //SKYRAT EDIT END new_player = 1 account_join_date = findJoinDate() var/datum/db_query/query_add_player = SSdbcore.NewQuery({"