Merge pull request #488 from Citadel-Station-13/upstream-merge-26344

[MIRROR] Fixes double warnings on new players connecting.
This commit is contained in:
LetterJay
2017-04-24 21:27:40 -05:00
committed by GitHub
2 changed files with 30 additions and 1 deletions
+9 -1
View File
@@ -290,8 +290,16 @@ GLOBAL_LIST(external_rsc_urls)
add_verbs_from_config()
set_client_age_from_db()
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.
if (isnum(cached_player_age) && cached_player_age == -1) //first connection
player_age = 0
if(!IsGuestKey(key) && SSdbcore.IsConnected())
findJoinDate()
if (isnum(player_age) && player_age == -1) //first connection
sync_client_with_db(tdata)
if (isnum(cached_player_age) && cached_player_age == -1) //first connection
if (config.panic_bunker && !holder && !(ckey in GLOB.deadmins))
log_access("Failed Login: [key] - New account attempting to connect during panic bunker")
message_admins("<span class='adminnotice'>Failed Login: [key] - New account attempting to connect during panic bunker</span>")