From 654e5ab1ccab54cc1b6f811f547def45fa588aa0 Mon Sep 17 00:00:00 2001 From: Ryan <80364400+Sirryan2002@users.noreply.github.com> Date: Mon, 15 Jul 2024 17:53:37 -0400 Subject: [PATCH] fix (#26247) --- code/modules/library/library_computer.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/library/library_computer.dm b/code/modules/library/library_computer.dm index 02412fd6a04..bf3aa54934e 100644 --- a/code/modules/library/library_computer.dm +++ b/code/modules/library/library_computer.dm @@ -331,7 +331,10 @@ user_data.selected_book.categories += text2num(params["category_id"]) populate_booklist() if("uploadbook") - if(GLOB.library_catalog.upload_book(params["user_ckey"], user_data.selected_book)) + var/choice = tgui_alert(ui.user, "I have ensured that nothing in this book violates this server's game rules and want to upload it to the database.", "Confirm", list("Yes", "No")) + if(choice != "Yes") + return + if(GLOB.library_catalog.upload_book(ui.user.ckey, user_data.selected_book)) playsound(src, 'sound/machines/ping.ogg', 50, 0) atom_say("Book Uploaded!") return