mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Allow Agent cards to use numbers in their names (#68065)
This commit is contained in:
committed by
GitHub
parent
07f5201136
commit
ae8cb8147b
@@ -1483,7 +1483,7 @@
|
||||
if(popup_input == "Forge/Reset")
|
||||
if(!forged)
|
||||
var/input_name = tgui_input_text(user, "What name would you like to put on this card? Leave blank to randomise.", "Agent card name", registered_name ? registered_name : (ishuman(user) ? user.real_name : user.name), MAX_NAME_LEN)
|
||||
input_name = sanitize_name(input_name)
|
||||
input_name = sanitize_name(input_name, allow_numbers = TRUE)
|
||||
if(!input_name)
|
||||
// Invalid/blank names give a randomly generated one.
|
||||
if(user.gender == MALE)
|
||||
|
||||
Reference in New Issue
Block a user