copytext() check for some input

This commit is contained in:
volas
2015-02-01 23:16:04 +03:00
parent 8abd7d0735
commit ea8e848463
7 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
if(BB)
if(initial(BB.name) == "bullet")
var/tmp_label = ""
var/label_text = sanitize(input(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label))
var/label_text = sanitize(copytext(input(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label), 1, MAX_NAME_LEN))
if(length(label_text) > 20)
user << "\red The inscription can be at most 20 characters long."
else