mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Changes check to an isnull rather than a truth test
This allows the client to detect the difference between a blank and someone pressing cancel.
This commit is contained in:
@@ -947,7 +947,7 @@ datum/preferences
|
||||
switch(href_list["preference"])
|
||||
if("name")
|
||||
var/raw_name = input(user, "Choose your character's name:", "Character Preference") as text|null
|
||||
if (raw_name) // Check to ensure that the user entered text (rather than cancel.)
|
||||
if (!isnull(raw_name)) // Check to ensure that the user entered text (rather than cancel.)
|
||||
var/new_name = reject_bad_name(raw_name)
|
||||
if(new_name)
|
||||
real_name = new_name
|
||||
|
||||
Reference in New Issue
Block a user