From 6cf70cd33cac126d55962b83ced5b22be458d7f9 Mon Sep 17 00:00:00 2001 From: Nerevar <12636964+Nerev4r@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:06:06 -0600 Subject: [PATCH 1/2] IT'S FUCKING FREEZING --- code/modules/client/preferences/names.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/client/preferences/names.dm b/code/modules/client/preferences/names.dm index 82d37eca0722b..f62b5aedd1d50 100644 --- a/code/modules/client/preferences/names.dm +++ b/code/modules/client/preferences/names.dm @@ -12,7 +12,7 @@ var/group /// Whether or not to allow numbers in the person's name - var/allow_numbers = FALSE + var/allow_numbers = TRUE //DOPPLER EDIT - For clones and robots and shiz. /// If the highest priority job matches this, will prioritize this name in the UI var/relevant_job @@ -24,17 +24,17 @@ /datum/preference/name/deserialize(input, datum/preferences/preferences) - return reject_bad_name("[input]", allow_numbers) + return permissive_sanitize_name("[input]", allow_numbers) /datum/preference/name/serialize(input) // `is_valid` should always be run before `serialize`, so it should not // be possible for this to return `null`. - return reject_bad_name(input, allow_numbers) + return permissive_sanitize_name(input, allow_numbers) /datum/preference/name/is_valid(value) - return istext(value) && !isnull(reject_bad_name(value, allow_numbers)) + return istext(value) && !isnull(permissive_sanitize_name(value, allow_numbers)) /// A character's real name @@ -68,7 +68,7 @@ else if(first_space == length(input)) input += "[pick(GLOB.last_names)]" - return reject_bad_name(input, allow_numbers) + return permissive_sanitize_name(input, allow_numbers) /// The name for a backup human, when nonhumans are made into head of staff /datum/preference/name/backup_human From 4afdb94a0c956626c191582da0f295ef2dbe8b19 Mon Sep 17 00:00:00 2001 From: Nerevar <12636964+Nerev4r@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:10:07 -0600 Subject: [PATCH 2/2] well if you want shady this is what i'll give ya --- code/modules/client/preferences/names.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/client/preferences/names.dm b/code/modules/client/preferences/names.dm index f62b5aedd1d50..00252f42654a8 100644 --- a/code/modules/client/preferences/names.dm +++ b/code/modules/client/preferences/names.dm @@ -24,17 +24,17 @@ /datum/preference/name/deserialize(input, datum/preferences/preferences) - return permissive_sanitize_name("[input]", allow_numbers) + return permissive_sanitize_name("[input]", allow_numbers) // DOPPLER EDIT CHANGE - ORIGINAL: return reject_bad_name /datum/preference/name/serialize(input) // `is_valid` should always be run before `serialize`, so it should not // be possible for this to return `null`. - return permissive_sanitize_name(input, allow_numbers) + return permissive_sanitize_name(input, allow_numbers) // DOPPLER EDIT CHANGE - ORIGINAL: return reject_bad_name /datum/preference/name/is_valid(value) - return istext(value) && !isnull(permissive_sanitize_name(value, allow_numbers)) + return istext(value) && !isnull(permissive_sanitize_name(value, allow_numbers)) // DOPPLER EDIT CHANGE - ORIGINAL: !isnull(reject_bad_name(value, allow_numbers)) /// A character's real name @@ -68,7 +68,7 @@ else if(first_space == length(input)) input += "[pick(GLOB.last_names)]" - return permissive_sanitize_name(input, allow_numbers) + return permissive_sanitize_name(input, allow_numbers) //DOPPLER EDIT CHANGE- Original: return reject_bad_name(input, allow_numbers) /// The name for a backup human, when nonhumans are made into head of staff /datum/preference/name/backup_human