mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Satisfies the fruit
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
var/motd
|
||||
var/policy
|
||||
|
||||
var/static/regex/ic_filter_regex
|
||||
|
||||
/datum/controller/configuration/proc/admin_reload()
|
||||
if(IsAdminAdvancedProcCall())
|
||||
return
|
||||
@@ -411,3 +413,6 @@ Example config:
|
||||
if(findtextEx(line,"#",1,2))
|
||||
continue
|
||||
GLOB.in_character_filter += line
|
||||
|
||||
if(!ic_filter_regex && GLOB.in_character_filter.len)
|
||||
ic_filter_regex = regex("\\b([jointext(GLOB.in_character_filter, "|")])\\b", "i")
|
||||
|
||||
@@ -94,8 +94,7 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
|
||||
return
|
||||
|
||||
if(GLOB.in_character_filter.len && !forced)
|
||||
var/regex/filter = regex("\\b([jointext(GLOB.in_character_filter, "|")])\\b", "i")
|
||||
if(findtext(message, filter))
|
||||
if(findtext(message, config.ic_filter_regex))
|
||||
to_chat(src, "<span class='warning'>That message contained a word prohibited in IC chat!</span>")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user