Fixes flavor text from being removed when canceled.

This was because canceling really just sent a empty string and not null which caused it to set the flavor text to an empty string.
This commit is contained in:
Carlen White
2019-05-22 00:27:19 -04:00
parent e9c450bf17
commit bb2a8bdd59
3 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -8,9 +8,9 @@
set src in usr
if(usr != src)
usr << "No."
var/msg = input(usr,"Set the flavor text in your 'examine' verb. Can also be used for OOC notes about your character.","Flavor Text",html_decode(flavor_text)) as message|null
if(msg != null)
var/msg = stripped_multiline_input(usr, "Set the flavor text in your 'examine' verb. This can also be used for OOC notes and preferences!", "Flavor Text", html_decode(flavor_text), MAX_MESSAGE_LEN*2, TRUE)
if(!isnull(msg))
msg = copytext(msg, 1, MAX_MESSAGE_LEN)
msg = html_encode(msg)