diff --git a/code/game/machinery/computer/security.dm b/code/game/machinery/computer/security.dm
index 803c9595846..16efcb7de76 100644
--- a/code/game/machinery/computer/security.dm
+++ b/code/game/machinery/computer/security.dm
@@ -141,6 +141,12 @@
qdel(R)
update_all_mob_security_hud()
setTemp("
All records deleted.
")
+ if("del_alllogs2")
+ if(cell_logs.len)
+ setTemp("All cell logs deleted.
")
+ cell_logs.Cut()
+ else
+ to_chat(usr, "Error; No cell logs to delete.")
if("del_r2")
if(active2)
qdel(active2)
@@ -254,6 +260,12 @@
buttons[++buttons.len] = list("name" = "No", "icon" = "times", "href" = null, "status" = null)
setTemp("Are you sure you wish to delete all records?
", buttons)
+ else if(href_list["del_alllogs"])
+ var/list/buttons = list()
+ buttons[++buttons.len] = list("name" = "Yes", "icon" = "check", "href" = "del_alllogs2=1", "status" = null)
+ buttons[++buttons.len] = list("name" = "No", "icon" = "times", "href" = null, "status" = null)
+ setTemp("Are you sure you wish to delete all cell logs?
", buttons)
+
else if(href_list["del_rg"])
if(active1)
var/list/buttons = list()
@@ -343,16 +355,22 @@
printing = 0
else if(href_list["printlogs"])
- var/obj/item/weapon/paper/P = (input(usr, "Select log to print", "Available Cell Logs") as null|anything in cell_logs)
- if(!P)
- return 0
- playsound(src.loc, "sound/goonstation/machines/printer_dotmatrix.ogg", 50, 1)
- to_chat(usr, "Printing [P.name].")
- sleep(50)
- var/obj/item/weapon/paper/LOG = new /obj/item/weapon/paper(src.loc)
- LOG.name = P.name
- LOG.info = P.info
- return 1
+ if(cell_logs.len && !printing)
+ var/obj/item/weapon/paper/P = input(usr, "Select log to print", "Available Cell Logs") as null|anything in cell_logs
+ if(!P)
+ return 0
+ printing = 1
+ playsound(loc, "sound/goonstation/machines/printer_dotmatrix.ogg", 50, 1)
+ to_chat(usr, "Printing file [P.name].")
+ sleep(50)
+ var/obj/item/weapon/paper/log = new /obj/item/weapon/paper(loc)
+ log.name = P.name
+ log.info = P.info
+ printing = 0
+ return 1
+ else
+ to_chat(usr, "[src] has no logs stored or is already printing.")
+
else if(href_list["add_c"])
if(istype(active2, /datum/data/record))
@@ -366,7 +384,6 @@
var/index = min(max(text2num(href_list["del_c"]) + 1, 1), length(active2.fields["comments"]))
if(istype(active2, /datum/data/record) && active2.fields["comments"][index])
active2.fields["comments"] -= active2.fields["comments"][index]
- return 0
if(href_list["field"])
if(..())
diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm
index 5f6c041a1ba..a24af37dc72 100644
--- a/code/game/machinery/doors/brigdoors.dm
+++ b/code/game/machinery/doors/brigdoors.dm
@@ -34,7 +34,7 @@
/obj/machinery/door_timer/proc/print_report()
var/logname = input(usr, "Name of the guilty?","[id] log name")
- var/logcharges = input(usr, "What have they been charged with?","[id] log charges")
+ var/logcharges = stripped_multiline_input(usr, "What have they been charged with?","[id] log charges")
if(!logname || !logcharges)
return 0
diff --git a/nano/templates/secure_data.tmpl b/nano/templates/secure_data.tmpl
index 9aef3589b9b..d4d129e808b 100644
--- a/nano/templates/secure_data.tmpl
+++ b/nano/templates/secure_data.tmpl
@@ -112,13 +112,14 @@ Used In File(s): \code\game\machinery\computer\security.dm
Menu
{{:helper.link('Record Maintenance', 'wrench', {'screen' : 2})}}
- {{:helper.link('Cell Logs', 'print', {'printlogs' : 1})}}
+ {{:helper.link('Print Cell Log', 'print', {'printlogs' : 1})}}
{{:helper.link('Logout', 'lock', {'logout' : 1})}}
{{else data.screen == 2}}
Records Maintenance
{{:helper.link('Backup To Disk', 'download', {'back' : 1}, 'disabled')}}
- {{:helper.link('Upload From disk', 'upload', {'u_load' : 1}, 'disabled')}}
+ {{:helper.link('Upload From Disk', 'upload', {'u_load' : 1}, 'disabled')}}
{{:helper.link('Delete All Records', 'trash', {'del_all' : 1})}}
+ {{:helper.link('Delete All Cell Logs', 'trash', {'del_alllogs' : 1})}}
{{:helper.link('Back', 'arrow-left', {'screen' : 1})}}
{{else data.screen == 3}}
Security Record