Allows you to toggle off Byond/Discord/URLs in OOC

This commit is contained in:
Atermonera
2020-05-21 11:19:04 -07:00
committed by VirgoBot
parent 3237ae96d7
commit 0c200c9483
3 changed files with 52 additions and 3 deletions

View File

@@ -232,7 +232,15 @@ var/list/gamemode_cache = list()
var/static/dooc_allowed = 1
var/static/dsay_allowed = 1
<<<<<<< HEAD
var/static/starlight = 0 // Whether space turfs have ambient light or not
=======
var/allow_byond_links = 0
var/allow_discord_links = 0
var/allow_url_links = 0 // honestly if I were you i'd leave this one off, only use in dire situations
var/starlight = 0 // Whether space turfs have ambient light or not
>>>>>>> 3fbc72a... Merge pull request #7206 from GeneriedJenelle/patch-1
var/static/list/ert_species = list(SPECIES_HUMAN)
@@ -424,6 +432,15 @@ var/list/gamemode_cache = list()
if ("allow_admin_spawning")
config.allow_admin_spawning = 1
if ("allow_byond_links")
allow_byond_links = 1
if ("allow_discord_links")
allow_discord_links = 1
if ("allow_url_links")
allow_url_links = 1
if ("no_dead_vote")
config.vote_no_dead = 1

View File

@@ -29,16 +29,29 @@
if(prefs.muted & MUTE_OOC)
to_chat(src, "<span class='danger'>You cannot use OOC (muted).</span>")
return
if(findtext(msg, "byond://"))
if(findtext(msg, "byond://") && !config.allow_byond_links)
to_chat(src, "<B>Advertising other servers is not allowed.</B>")
log_admin("[key_name(src)] has attempted to advertise in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to advertise in OOC: [msg]")
return
<<<<<<< HEAD
//VOREStation Add - No talking during voting
if(SSvote && SSvote.mode)
to_chat(src, "<span class='danger'>OOC is not allowed during voting.</span>")
return
//VOREStation Add End
=======
if(findtext(msg, "discord.gg") && !config.allow_discord_links)
to_chat(src, "<B>Advertising discords is not allowed.</B>")
log_admin("[key_name(src)] has attempted to advertise a discord server in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to advertise a discord server in OOC: [msg]")
return
if((findtext(msg, "http://") || findtext(msg, "https://")) && !config.allow_url_links)
to_chat(src, "<B>Posting external links is not allowed.</B>")
log_admin("[key_name(src)] has attempted to post a link in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to post a link in OOC: [msg]")
return
>>>>>>> 3fbc72a... Merge pull request #7206 from GeneriedJenelle/patch-1
log_ooc(msg, src)
@@ -109,11 +122,21 @@
if(prefs.muted & MUTE_OOC)
to_chat(src, "<span class='danger'>You cannot use OOC (muted).</span>")
return
if(findtext(msg, "byond://"))
if(findtext(msg, "byond://") && !config.allow_byond_links)
to_chat(src, "<B>Advertising other servers is not allowed.</B>")
log_admin("[key_name(src)] has attempted to advertise in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to advertise in OOC: [msg]")
return
if(findtext(msg, "discord.gg") && !config.allow_discord_links)
to_chat(src, "<B>Advertising discords is not allowed.</B>")
log_admin("[key_name(src)] has attempted to advertise a discord server in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to advertise a discord server in OOC: [msg]")
return
if((findtext(msg, "http://") || findtext(msg, "https://")) && !config.allow_url_links)
to_chat(src, "<B>Posting external links is not allowed.</B>")
log_admin("[key_name(src)] has attempted to post a link in OOC: [msg]")
message_admins("[key_name_admin(src)] has attempted to post a link in OOC: [msg]")
return
log_looc(msg,src)

View File

@@ -532,6 +532,15 @@ SQLITE_FEEDBACK_MIN_AGE 7
## Comment this out if you don't want to use the 'nightshift lighting' subsystem to adjust lights based on ingame time
ENABLE_NIGHT_SHIFTS
<<<<<<< HEAD
## Comment this out to enable playtime restrictions for jobs in their respective departments (mostly for heads)
# USE_PLAYTIME_RESTRICTION_FOR_JOBS
=======
## OOC/LOOC control ##
# Uncomment to allow links of the following kinds. #
# ALLOW_BYOND_LINKS
# ALLOW_DISCORD_LINKS
ALLOW_URL_LINKS
>>>>>>> 3fbc72a... Merge pull request #7206 from GeneriedJenelle/patch-1