From 20f7370ea3fe9ec88af0bb7e4a0c5b135f6f732c Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 3 Apr 2018 07:33:47 -0400 Subject: [PATCH 1/2] Removes @ (#36928) --- code/datums/brain_damage/phobia.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/brain_damage/phobia.dm b/code/datums/brain_damage/phobia.dm index 75c2f27631..5e988d0b1c 100644 --- a/code/datums/brain_damage/phobia.dm +++ b/code/datums/brain_damage/phobia.dm @@ -71,7 +71,7 @@ if(!owner.can_hear() || world.time < next_scare) //words can't trigger you if you can't hear them *taps head* return message for(var/word in trigger_words) - var/reg = regex(@"[^\l][REGEX_QUOTE(word)]*s[^\l]") + var/reg = regex("\[^\\l\][REGEX_QUOTE(word)]*s\[^\\l\]") if(findtext(raw_message, reg)) addtimer(CALLBACK(src, .proc/freak_out, null, word), 10) //to react AFTER the chat message break @@ -79,7 +79,7 @@ /datum/brain_trauma/mild/phobia/on_say(message) for(var/word in trigger_words) - var/reg = regex(@"[^\l][REGEX_QUOTE(word)]*s[^\l]") + var/reg = regex("\[^\\l\][REGEX_QUOTE(word)]*s\[^\\l\]") if(findtext(message, reg)) to_chat(owner, "You can't bring yourself to say the word \"[word]\"!") return ""