Paper Name Limit

- Added arguments to the stripped_input call.
-- usr, no idea why it worked without this.
-- MAX_NAME_LEN, so you can't make paper with super long names.
This commit is contained in:
Deantwo
2015-01-21 13:13:13 +01:00
parent 0e150ced74
commit ec49b6d724
+1 -1
View File
@@ -76,7 +76,7 @@
H << "<span class='warning'>You cut yourself on the paper! Ahhhh! Ahhhhh!</span>"
H.damageoverlaytemp = 9001
return
var/n_name = stripped_input("What would you like to label the paper?", "Paper Labelling")
var/n_name = stripped_input(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN)
if((loc == usr && usr.stat == 0))
name = "paper[(n_name ? text("- '[n_name]'") : null)]"
add_fingerprint(usr)