diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm index 91123c0c7f..a9be76494b 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -78,6 +78,26 @@ popup.set_content(output) popup.open(FALSE) +/proc/age_gate(/mob/dead/new_player/plr) + var/list/dat = list("
") + dat += "Enter your date of birth here, to confirm that you are over 18.
" + dat += "Your date of birth is not saved, only the fact that you are over/under 18 is.
" + dat += "
" + + dat += "
" + dat += "

" + + output += "

" + + plr << browse(dat,"window=playerpoll;size=500x250") + /mob/dead/new_player/proc/age_verify() if(CONFIG_GET(flag/age_verification) && !check_rights_for(client, R_ADMIN) && !(client.ckey in GLOB.bunker_passthrough)) //make sure they are verified if(!client.set_db_player_flags()) @@ -86,7 +106,7 @@ else var/dbflags = client.prefs.db_flags if(dbflags & DB_FLAG_AGE_CONFIRMATION_INCOMPLETE) //they have not completed age gate - var/age_verification = askuser(src, "Are you 18+", "Age Gate", "I am 18+", "I am not 18+", null, TRUE, null) + var/age_verification = age_gate(src) if(age_verification != 1) client.add_system_note("Automated-Age-Gate", "Failed automatic age gate process") qdel(client) //kick the user