Skip to content

Commit

Permalink
Merge branch 'brainrot-filter' of https://github.com/Gaxeer/Paradise-…
Browse files Browse the repository at this point in the history
…Remake into brainrot-filter
  • Loading branch information
Gaxeer committed May 16, 2024
2 parents 77b33e2 + 7563ea6 commit 515c241
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modular_ss220/speech_filter/code/speech_filter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@
return

var/original_message = copytext(message, 1)
message = rustutils_regex_replace(message, brainrot_regex, "i", "")
if(length(original_message) == length(message))
message = rustutils_regex_replace(message, brainrot_regex, "i", "цветочек")
if(original_message == message)
return

speech_args[SPEECH_MESSAGE] = trim(message)
addtimer(CALLBACK(talker, TYPE_PROC_REF(/mob, emote), "drool"), 0.3 SECONDS)
to_chat(talker, span_sinister(pick(brainrot_notifications)))
log_and_message_admins("[key_name(talker)] has attempted to say forbidden word. His message was: [original_message]")
Expand Down

0 comments on commit 515c241

Please sign in to comment.