diff --git a/code/modules/admin/verbs/playsound.dm b/code/modules/admin/verbs/playsound.dm index a89250dcc1..6e8b50d38e 100644 --- a/code/modules/admin/verbs/playsound.dm +++ b/code/modules/admin/verbs/playsound.dm @@ -157,7 +157,7 @@ if(!length(web_sound_input)) log_admin("[key_name(src)] stopped web sound") message_admins("[key_name(src)] stopped web sound") - for(var/m in player_list) + for(var/m in GLOB.player_list) var/mob/M = m var/client/C = M.client if((C.prefs.toggles & SOUND_MIDI) && C.chatOutput && !C.chatOutput.broken && C.chatOutput.loaded) @@ -166,7 +166,7 @@ var/freq = input(usr, "What frequency would you like the sound to play at?",, 1) as null|num if(!freq) return - if(web_sound_input && !findtext(web_sound_input, is_http_protocol)) + if(web_sound_input && !findtext(web_sound_input, GLOB.is_http_protocol)) to_chat(src, "BLOCKED: Content URL not using http(s) protocol") to_chat(src, "The media provider returned a content URL that isn't using the HTTP or HTTPS protocol") return @@ -178,7 +178,7 @@ var/mob/M = m var/client/C = M.client if((C.prefs.toggles & SOUND_MIDI) && C.chatOutput && !C.chatOutput.broken && C.chatOutput.loaded) - C.chatOutput.sendMusic(web_sound_url, pitch) + C.chatOutput.sendMusic(web_sound_input, freq) /client/proc/stop_sounds() set category = "Debug"