Skip to content

Commit

Permalink
well if you want shady this is what i'll give ya
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerev4r committed Oct 11, 2024
1 parent 6cf70cd commit 4afdb94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/client/preferences/names.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4afdb94

Please sign in to comment.