Fix a few tgui input bugs

This commit is contained in:
Aronai Sieyes
2021-06-28 01:21:17 -04:00
parent 9c71354166
commit 6ddcc262aa
4 changed files with 67 additions and 11 deletions
+5 -2
View File
@@ -425,8 +425,11 @@
to_chat(usr, "<span class='info'>There isn't enough space left on \the [src] to write anything.</span>")
return
var/t = sanitize(input(usr, "Enter what you want to write:", "Write", null, null) as message, MAX_PAPER_MESSAGE_LEN, extra = 0)
var/raw = input(usr, "Enter what you want to write:", "Write") as null|message
if(!raw)
return
var/t = sanitize(raw, MAX_PAPER_MESSAGE_LEN, extra = 0)
if(!t)
return