Skip to content

Commit

Permalink
prevents spamming
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Apr 28, 2024
1 parent 17b1d6d commit cf02f47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/game/machinery/computer/camera_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf02f47

Please sign in to comment.