From 7304682f624da3d00f9244b1e2c21a249f9b1c92 Mon Sep 17 00:00:00 2001 From: JimTheCactus Date: Sat, 26 Jul 2014 16:19:14 -0600 Subject: [PATCH] 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. --- code/modules/client/preferences.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index eac25dc837e..acd0a4585a4 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -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