diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index d4d0a48ce1..c581e402a6 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -593,16 +593,16 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( else if(ckey in GLOB.bunker_passthrough) GLOB.bunker_passthrough -= ckey if(CONFIG_GET(flag/age_verification)) //setup age verification - if(!C.set_db_player_flags()) + if(!set_db_player_flags()) message_admins(usr, "ERROR: Unable to read player flags from database. Please check logs.") return else - var/dbflags = C.prefs.db_flags + var/dbflags = prefs.db_flags if(!(dbflags & DB_FLAG_AGE_CONFIRMATION_COMPLETE)) //they have not completed age verification if((ckey in GLOB.bunker_passthrough)) //they're verified in the panic bunker though - C.update_flag_db(DB_FLAG_AGE_CONFIRMATION_COMPLETE, TRUE) + update_flag_db(DB_FLAG_AGE_CONFIRMATION_COMPLETE, TRUE) else - C.update_flag_db(DB_FLAG_AGE_CONFIRMATION_INCOMPLETE, TRUE) + update_flag_db(DB_FLAG_AGE_CONFIRMATION_INCOMPLETE, TRUE) qdel(query_client_in_db) var/datum/DBQuery/query_get_client_age = SSdbcore.NewQuery("SELECT firstseen, DATEDIFF(Now(),firstseen), accountjoindate, DATEDIFF(Now(),accountjoindate) FROM [format_table_name("player")] WHERE ckey = '[sql_ckey]'") diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm index e156f8904d..aeb849a24c 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -36,11 +36,11 @@ /mob/dead/new_player/proc/new_player_panel() //hold this until we know they passed age verification if(CONFIG_GET(flag/age_verification)) //make sure they are verified - if(!C.set_db_player_flags()) + if(!client.set_db_player_flags()) message_admins("Blocked [src] from new player panel because age verification could not access player database flags.") return else - var/dbflags = C.prefs.db_flags + var/dbflags = client.prefs.db_flags if(dbflags & DB_FLAG_AGE_CONFIRMATION_INCOMPLETE) //they have not completed age verification var/age_verification = alert(src, "You must be 18+ to enter this server. Please confirm your age.",, "I am 18+", "I am not 18+") if(age_verification != "I am 18+")