Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little check to help stop the broken-headshot epidemic #1168

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4024,6 +4024,17 @@ GLOBAL_LIST_EMPTY(preferences_datums)
if(!findtext(usr_input, link_regex))
to_chat(usr, span_warning("You need a valid link!"))
return

if(findtext(usr_input, "discordapp"))
to_chat(usr, span_adminsay("You cannot use Discord images, as they are auto-deleted regularly! Try Catbox.moe or Gyazo instead!"))
return
// Discord will auto-delete images often, meaning users will see their headshot show up, think all is fine, but three days later their link will be broken.

if(findtext(usr_input, "imgur"))
to_chat(usr, span_adminsay("You cannot use Imgur images, as they regularly delete NSFW images as well as many borderline SFW too! Try Catbox.moe or Gyazo instead!"))
return
// Whilst Imgur does not ban SFW images, many SFW images that look questionable will be nuked.

if(!findtext(usr_input, end_regex, -8))
to_chat(usr, span_warning("You need either \".png\", \".jpg\", or \".jpeg\" in the link!"))
return
Expand Down
Loading