From cf02f47ab576c75081ae5dc584f2b87449b811fd Mon Sep 17 00:00:00 2001 From: AndroBetel <44546836+AndroBetel@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:39:42 +0300 Subject: [PATCH] prevents spamming --- code/game/machinery/computer/camera_console.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index 72caf1224539..e2155a162528 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -225,7 +225,10 @@ to_chat(user, SPAN_WARNING("Streamer is not accepting donations at this time.")) return - var/message = tgui_input_text(user, "What would you like to message the streamer? (48 Characters MAX)", "Message", max_length = 48) + var/message = "Thanks for your donation!" + if(spacecash.worth >= 10) + message = tgui_input_text(user, "What would you like to message the streamer? (48 Characters MAX)", "Message", max_length = 48) + var/nickname = tgui_input_text(user, "What would you like your displayed name to be? (20 Characters MAX)", "Name", max_length = 20) broadcastingcamera.donationsaccount.money += spacecash.worth