From 0e520e5b4b483b7e24fe8bd468302afecb099fbb Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Tue, 13 Jun 2017 23:08:27 +1000 Subject: [PATCH] fixes panic bunker age check --- code/modules/client/client_procs.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 9c4a9a098a2..0ccbc904d3d 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -278,8 +278,7 @@ GLOBAL_LIST(external_rsc_urls) to_chat(src, "The server's API key is either too short or is the default value! Consider changing it immediately!") add_verbs_from_config() - set_client_age_from_db(tdata) - var/cached_player_age = player_age //we have to cache this because other shit may change it and we need it's current value now down below. + var/cached_player_age = set_client_age_from_db(tdata) //we have to cache this because other shit may change it and we need it's current value now down below. if (isnum(cached_player_age) && cached_player_age == -1) //first connection player_age = 0 if (isnum(cached_player_age) && cached_player_age == -1) //first connection @@ -466,6 +465,9 @@ GLOBAL_LIST(external_rsc_urls) account_join_date = "Error" var/datum/DBQuery/query_log_connection = SSdbcore.NewQuery("INSERT INTO `[format_table_name("connection_log")]` (`id`,`datetime`,`server_ip`,`server_port`,`ckey`,`ip`,`computerid`) VALUES(null,Now(),INET_ATON(IF('[world.internet_address]' LIKE '', '0', '[world.internet_address]')),'[world.port]','[sql_ckey]',INET_ATON('[sql_ip]'),'[sql_computerid]')") query_log_connection.Execute() + if(new_player) + player_age = -1 + . = player_age /client/proc/findJoinDate() var/list/http = world.Export("http://byond.com/members/[ckey]?format=text")