Skip to content

Commit

Permalink
Adds Imgbox to the headshot whitelist. (#2366)
Browse files Browse the repository at this point in the history
initial commit

Co-authored-by: sergeirocks100 <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
3 people authored Mar 11, 2024
1 parent 4033bc2 commit 19ffb4a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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|files.byondhome.com")
var/static/link_regex = regex("i.gyazo.com|files.byondhome.com|images2.imgbox.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)
Expand Down Expand Up @@ -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, Byond'"))
to_chat(usr, span_warning("The image must be hosted on one of the following sites: 'Gyazo, Byond, Imgbox'"))
return

apply_headshot(value)
Expand Down

0 comments on commit 19ffb4a

Please sign in to comment.