Dionaea names among others are now capped when choosing a custom one.

This commit is contained in:
D3athrow
2015-02-02 19:07:12 -06:00
parent 113a73560c
commit ac09ba3a34
3 changed files with 3 additions and 3 deletions

View File

@@ -393,7 +393,7 @@ var/list/advance_cures = list(
if(D.symptoms.len > 0)
var/new_name = input(user, "Name your new disease.", "New Name")
var/new_name = copytext(sanitize(input(user, "Name your new disease.", "New Name")),1,MAX_NAME_LEN)
D.AssignName(new_name)
D.Refresh()

View File

@@ -844,7 +844,7 @@
if (bufferOption == "changeLabel")
var/datum/dna2/record/buf = src.buffers[bufferId]
var/text = sanitize(input(usr, "New Label:", "Edit Label", buf.name) as text|null)
var/text = copytext(sanitize(input(usr, "New Label:", "Edit Label", buf.name) as text|null)),1,MAX_NAME_LEN)
buf.name = text
src.buffers[bufferId] = buf
return 1

View File

@@ -58,7 +58,7 @@
host << "<B>Too much darkness will send you into shock and starve you, but light will help you heal.</B>"
var/newname = input(host,"Enter a name, or leave blank for the default name.", "Name change","") as text
newname = sanitize(newname)
newname = sanitize(newname),1,MAX_NAME_LEN)
if (newname != "")
host.real_name = newname
host.name = host.real_name