marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit 50151e225e80eb11fc05ebdd4c08bd0928318e5a
parent 0282a627be3df78443ea705162ac9d448e7f9c21
Author: hhvn <hayden@hhvn.uk>
Date:   Thu, 22 Apr 2021 17:30:25 +0100

filters.sh: fix say directive

Diffstat:
Mfilters.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/filters.sh b/filters.sh @@ -172,7 +172,7 @@ shrug(){ say(){ ( - tr ' ' '\n' | awk 'BEGIN {p=0}; // {if ($1 == "say" || $1 == "Say") p=1; if (p == 1) print}' | tr '\n' ' ' | sed 's/^say //' + head | tr ' ' '\n' | awk 'BEGIN {p=0}; /say|Say|say,|Say,/ {p=1; next}; // {if (p == 1) print}' | tr '\n' ' ' | sed 's/^[Ssay],* //' printf "\r\n" ) | prepl_msg } @@ -195,4 +195,4 @@ match_msg "http[s]*://.*" url_title # match_msg "^(lul|lol|hah|hehe|heh|haha).*wut\?" shrug match_msg "^marvvin[:,].*" huh match_msg "puma" puma -match_msg "say .*" say +match_msg "say[,:]* .*" say