mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Dionaea names among others are now capped when choosing a custom one.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user