marvvin

IRC bot
Log | Files | Refs | README | LICENSE

commit 0eff81665f70be2c49f3b1f4ec2972e6686e0a39
parent 054e9cdec4226bc1c4d9225d28328c369a2274b1
Author: hhvn <hayden@hhvn.uk>
Date:   Mon, 24 May 2021 22:51:55 +0100

filters.sh: harden against mys :)

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

diff --git a/filters.sh b/filters.sh @@ -178,7 +178,9 @@ say(){ } calc(){ - printf '%s\n' "$*" | timeout 5 bc | prepl_msg + islocked bc && return + lock bc 6 + sed 's/.*calc //' | timeout 5 bc | head -n5 | prepl_msg } match_motd send_join "#hlircnet"