Change the word filter configuration to allow providing reasons, fix emotes not working in filters, and implement separate OOC/IC/PDA filters (#61606)

This commit is contained in:
Mothblocks
2021-09-25 21:13:43 -07:00
committed by GitHub
parent 0211a2e9eb
commit dbe560f4d9
20 changed files with 269 additions and 33 deletions
@@ -758,6 +758,12 @@ GLOBAL_LIST_EMPTY(PDAs)
return
if((last_text && world.time < last_text + 10) || (everyone && last_everyone && world.time < last_everyone + PDA_SPAM_DELAY))
return
var/list/filter_result = is_ic_filtered_for_pdas(message)
if (filter_result)
REPORT_CHAT_FILTER_TO_USER(user, filter_result)
return
if(prob(1))
message += "\nSent from my PDA"
// Send the signal