From 99cfd830bb878dbdda8b34c3901d2e3780b82993 Mon Sep 17 00:00:00 2001 From: Dani Glore Date: Mon, 4 Mar 2024 00:49:14 -0500 Subject: [PATCH] [MODULAR] Character Headshots via files.byondhome.com (#1262) Add support for files.byondhome.com to headshot.dm --- .../master_files/code/modules/client/preferences/headshot.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modular_nova/master_files/code/modules/client/preferences/headshot.dm b/modular_nova/master_files/code/modules/client/preferences/headshot.dm index a5bf0d9873a..02f283437a7 100644 --- a/modular_nova/master_files/code/modules/client/preferences/headshot.dm +++ b/modular_nova/master_files/code/modules/client/preferences/headshot.dm @@ -7,7 +7,7 @@ maximum_value_length = MAX_MESSAGE_LEN /// Assoc list of ckeys and their link, used to cut down on chat spam var/list/stored_link = list() - var/static/link_regex = regex("i.gyazo.com|media.discordapp.net|cdn.discordapp.com") + var/static/link_regex = regex("i.gyazo.com|media.discordapp.net|cdn.discordapp.com|files.byondhome.com") var/static/list/valid_extensions = list("jpg", "png", "jpeg") // Regex works fine, if you know how it works /datum/preference/text/headshot/apply_to_human(mob/living/carbon/human/target, value, datum/preferences/preferences) @@ -36,7 +36,7 @@ find_index = findtext(value, link_regex) if(find_index != 9) - to_chat(usr, span_warning("The image must be hosted on one of the following sites: 'Gyazo, Discord'")) + to_chat(usr, span_warning("The image must be hosted on one of the following sites: 'Gyazo, Discord, Byond'")) return apply_headshot(value)