From f43d37acc0106a95c08bf043436b33028ce91a0d Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Thu, 16 Aug 2018 13:06:58 -0700 Subject: [PATCH] Update camera.dm --- code/modules/photography/camera/camera.dm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/modules/photography/camera/camera.dm b/code/modules/photography/camera/camera.dm index db4f6fd863..a3027c951f 100644 --- a/code/modules/photography/camera/camera.dm +++ b/code/modules/photography/camera/camera.dm @@ -204,17 +204,14 @@ to_chat(user, "[pictures_left] photos left.") var/customize = alert(user, "Do you want to customize the photo?", "Customization", "Yes", "No") if(customize == "Yes") - var/name1 = input(user, "Set a name for this photo, or leave blank. 32 characters max.", "Name") as text|null - var/desc1 = input(user, "Set a description to add to photo, or leave blank. 128 characters max.", "Caption") as text|null - var/caption = input(user, "Set a caption for this photo, or leave blank. 256 characters max.", "Caption") as text|null + var/name1 = stripped_input(user, "Set a name for this photo, or leave blank. 32 characters max.", "Name", max_length = 32) as text|null + var/desc1 = stripped_input(user, "Set a description to add to photo, or leave blank. 128 characters max.", "Caption", max_length = 128) as text|null + var/caption = stripped_input(user, "Set a caption for this photo, or leave blank. 256 characters max.", "Caption", max_length = 256) as text|null if(name1) - name1 = copytext(name1, 1, 33) picture.picture_name = name1 if(desc1) - desc1 = copytext(desc1, 1, 129) picture.picture_desc = "[desc1] - [picture.picture_desc]" if(caption) - caption = copytext(caption, 1, 257) picture.caption = caption p.set_picture(picture) if(CONFIG_GET(flag/picture_logging_camera))