From 8898050c231ea29eb78aa0d51f100355c80c5cac Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:51:21 -0700 Subject: [PATCH] [MIRROR] url parsing for motd & player tips (#7453) Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/modules/mob/new_player/login.dm | 1 + code/modules/player_tips_vr/player_tips_controller_vr.dm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/new_player/login.dm b/code/modules/mob/new_player/login.dm index 9869392d1c..ad6d12287c 100644 --- a/code/modules/mob/new_player/login.dm +++ b/code/modules/mob/new_player/login.dm @@ -29,6 +29,7 @@ var/obj/effect/lobby_image = new /obj/effect/lobby_image /mob/new_player/Login() update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying if(join_motd) + join_motd = GLOB.is_valid_url.Replace(join_motd,"$1") to_chat(src, "
[join_motd]
") if(has_respawned) diff --git a/code/modules/player_tips_vr/player_tips_controller_vr.dm b/code/modules/player_tips_vr/player_tips_controller_vr.dm index 90a542838a..e23994be92 100644 --- a/code/modules/player_tips_vr/player_tips_controller_vr.dm +++ b/code/modules/player_tips_vr/player_tips_controller_vr.dm @@ -31,6 +31,7 @@ Controlled by the player_tips subsystem under code/controllers/subsystems/player if(!M.key && !(M.key in HasReceived)) to_chat(M, SPAN_WARNING("You have periodic player tips enabled. You may turn them off at any time with the Toggle Receiving Player Tips verb in Preferences, or in character set up under the OOC tab!\n Player tips appear every 45-75 minutes.")) HasReceived.Add(M.key) + tip = GLOB.is_valid_url.Replace(tip,"$1") to_chat(M, SPAN_NOTICE("[tip]")) @@ -46,4 +47,4 @@ Controlled by the player_tips subsystem under code/controllers/subsystems/player if(choice == "cancel") return var/static/datum/player_tips/player_tips = new - to_chat(src, SPAN_NOTICE("[player_tips.pick_tip(choice)]")) + to_chat(src, SPAN_NOTICE("[GLOB.is_valid_url.Replace(player_tips.pick_tip(choice),"$1")]"))