mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
Fix the swapped "display who played this song" anonymity buttons for Play Internet Sound (#93717)
## About The Pull Request Hi I'm on a downstream server and this is driving me actually insane ## Why It's Good For The Game I can't speak for tgstation admins but I like it when the buttons in a panel are not lies ## Changelog 🆑 admin: Made the buttons asking you for anonymity when you select/approve a Play Internet Sound request actually do what they say, instead of the opposite. /🆑
This commit is contained in:
@@ -119,17 +119,17 @@ GLOBAL_VAR_INIT(web_sound_cooldown, 0)
|
||||
music_extra_data["album"] = "Default"
|
||||
if("Cancel", null)
|
||||
return
|
||||
var/stay_anonimous = tgui_alert(user, "Display who played the song?", "Credit Yourself", list("Yes", "No", "Cancel"))
|
||||
var/credit_yourself = tgui_alert(user, "Display who played the song?", "Credit Yourself", list("Yes", "No", "Cancel"))
|
||||
|
||||
var/list/to_chat_message = list()
|
||||
|
||||
switch(stay_anonimous)
|
||||
if("No")
|
||||
switch(credit_yourself)
|
||||
if("Yes")
|
||||
if(include_song_data == "Yes")
|
||||
to_chat_message += span_notice("[user.ckey] played: [span_linkify(webpage_url)]")
|
||||
else
|
||||
to_chat_message += span_notice("[user.ckey] played a sound.")
|
||||
if("Yes")
|
||||
if("No")
|
||||
if(include_song_data == "Yes")
|
||||
to_chat_message += span_notice("An admin played: [span_linkify(webpage_url)]")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user