Fix input sanitization issues

This commit is contained in:
Tayyyyyyy
2019-08-11 22:40:16 -07:00
parent e5eff24be8
commit 90bbc01cf4
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ var/list/intents = list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM)
if(force)
newname = clean_input("Pick a new name.", "Name Change", oldname, src)
else
newname = input("You are a [role]. Would you like to change your name to something else? (You have 3 minutes to select a new name.)", "Name Change", oldname, src)
newname = clean_input("You are a [role]. Would you like to change your name to something else? (You have 3 minutes to select a new name.)", "Name Change", oldname, src)
if(((world.time - time_passed) > 1800) && !force)
alert(src, "Unfortunately, more than 3 minutes have passed for selecting your name. If you are a robot, use the Namepick verb; otherwise, adminhelp.", "Name Change")
return //took too long