commit f15b61a9ca50b3fcef99f59663e1e0662cd50bd4
parent 92d8e8c266c97c992c702fc4e3cfaedad87a39bf
Author: hhvn <hayden@hhvn.uk>
Date: Sun, 30 May 2021 15:57:58 +0100
filters.sh: use ^
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/filters.sh b/filters.sh
@@ -191,12 +191,12 @@ match_action "(slaps|smacks|whacks|hits|strikes|punches|shoots|stabs|wounds) $ni
match_action "(gives|passes|hands).*$nick.*(blunt|bong|joint)" weed
match_action "(gives|passes|hands).*$nick.*job" job
match_action "(gives|passes|hands).*$nick.*(food|cookie|biscuit|leftovers|dinner|scraps)" food
-match_msg "$nick[:,] (wttr|weather)" weather
-match_msg "$nick[:,] say" say
-match_msg "$nick[:,] (calc|bc)" calc
-match_msg "$nick[:,] good |)night(.*$nick.*|)$" night
-match_msg "$nick[,:] ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" bin
-match_msg "$nick[,:] (sudo|doas) ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" binsu
+match_msg "^$nick[:,] (wttr|weather)" weather
+match_msg "^$nick[:,] say" say
+match_msg "^$nick[:,] (calc|bc)" calc
+match_msg "^$nick[:,] good |)night(.*$nick.*|)$" night
+match_msg "^$nick[,:] ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" bin
+match_msg "^$nick[,:] (sudo|doas) ($(ls bin/ | tr '\n' '|' | sed 's/|$//g'))" binsu
match_msg "^poo*p" sand
match_msg "http[s]*://.*" url_title
# match_msg "^(lul|lol|hah|hehe|heh|haha).*wut\?" shrug