From f535ee89f3904eca7e20b99203f6e3a5f6f4b104 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Fri, 22 May 2020 20:11:02 -0400 Subject: [PATCH] Warn VPN connectors better --- code/modules/client/client procs.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 6be3b32460..8c14493820 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -324,12 +324,14 @@ var/sql_computerid = sql_sanitize_text(src.computer_id) var/sql_admin_rank = sql_sanitize_text(admin_rank) + // If you're about to disconnect the player, you have to use to_chat_immediate otherwise they won't get the message (SSchat will queue it) + //Panic bunker code if (isnum(player_age) && player_age == 0) //first connection if (config.panic_bunker && !holder && !deadmin_holder) log_adminwarn("Failed Login: [key] - New account attempting to connect during panic bunker") message_admins("Failed Login: [key] - New account attempting to connect during panic bunker") - to_chat(src, "Sorry but the server is currently not accepting connections from never before seen players.") + to_chat_immediate(src, "Sorry but the server is currently not accepting connections from never before seen players.") qdel(src) return 0 @@ -348,11 +350,11 @@ //Take action if required if(config.ipr_block_bad_ips && config.ipr_allow_existing) //We allow players of an age, but you don't meet it - to_chat(src, "Sorry, we only allow VPN/Proxy/Tor usage for players who have spent at least [config.ipr_minimum_age] days on the server. If you are unable to use the internet without your VPN/Proxy/Tor, please contact an admin out-of-game to let them know so we can accommodate this.") + to_chat_immediate(src, "Sorry, we only allow VPN/Proxy/Tor usage for players who have spent at least [config.ipr_minimum_age] days on the server. If you are unable to use the internet without your VPN/Proxy/Tor, please contact an admin out-of-game to let them know so we can accommodate this.") qdel(src) return 0 else if(config.ipr_block_bad_ips) //We don't allow players of any particular age - to_chat(src, "Sorry, we do not accept connections from users via VPN/Proxy/Tor connections.") + to_chat_immediate(src, "Sorry, we do not accept connections from users via VPN/Proxy/Tor connections. If you believe this is in error, contact an admin out-of-game.") qdel(src) return 0 else