/tg/ Station 13 - Modules - Types

code/__HELPERS/chat_filter.dm

/proc/is_ic_filtered Given a text, will return what word is on the IC filter, with the reason. Returns null if the message is OK.
/proc/is_soft_ic_filtered Given a text, will return what word is on the soft IC filter, with the reason. Returns null if the message is OK.
/proc/is_ooc_filtered Given a text, will return what word is on the OOC filter, with the reason. Returns null if the message is OK.
/proc/is_soft_ooc_filtered Given a text, will return that word is on the soft OOC filter, with the reason. Returns null if the message is OK.
/proc/check_pda_message_against_filter Checks a PDA message against the IC/Soft IC filter. Returns TRUE if the message should be sent. Notifies the user passed in arguments if the message matched either filter.
/proc/is_ic_filtered_for_pdas Given a text, will return what word is on the IC filter, ignoring words allowed on the PDA, with the reason. Returns null if the message is OK.
/proc/is_soft_ic_filtered_for_pdas Given a text, will return what word is on the soft IC filter, ignoring words allowed on the PDA, with the reason. Returns null if the message is OK.
/proc/censor_ic_filter_for_pdas Given a pda message, will replace any match in the message with grawlixs.
/proc/log_filter Logs to the filter log with the given message, match, and scope