commit 0ef9380275fe2bb62ee2c5f5ab4873e74ecae105
parent 8026bb63909c7ac44ff10bb530c215b8c7173834
Author: hhvn <hayden@hhvn.uk>
Date: Wed, 14 Apr 2021 14:06:51 +0100
functions.sh: run asynch
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/functions.sh b/functions.sh
@@ -32,7 +32,7 @@ _mkfifo(){
match_raw(){
echo "$LINE" | grep -E "$1" >/dev/null && {
shift
- echo "$LINE" | $@
+ echo "$LINE" | $@ &
undefine_match
}
}
@@ -66,7 +66,7 @@ match_msg(){
echo "$sline" | grep -Ei "$regex" >/dev/null && {
echo "$3" | grep '^[#!&]' >/dev/null && REPL="$3" || REPL="$NICK"
export REPL
- echo "$sline" | $cmd
+ echo "$sline" | $cmd &
undefine_match
}
}
@@ -115,7 +115,7 @@ match_notice(){
echo "$sline" | grep -Ei "$regex" >/dev/null && {
echo "$3" | grep '^[#!&]' >/dev/null && REPL="$3" || REPL="$NICK"
export REPL
- echo "$sline" | $cmd
+ echo "$sline" | $cmd &
undefine_match
}
}
@@ -165,7 +165,7 @@ match_action(){
echo "$sline" | grep -Ei "$regex" >/dev/null && {
echo "$3" | grep '^[#!&]' >/dev/null && REPL="$3" || REPL="$NICK"
export REPL
- echo "$sline" | $cmd
+ echo "$sline" | $cmd &
undefine_match
}
}
@@ -207,7 +207,7 @@ prepl_action(){
# match_motd(command...)
match_motd(){
echo "$LINE" | grep '^[^ ]* 376' >/dev/null && {
- $@
+ $@ &
}
}
@@ -221,7 +221,7 @@ match_join(){
[ "$2" = "JOIN" ] && {
echo "$NICK" | grep -E "$nick_regex" >/dev/null && {
export CHANNEL=$channel
- $cmd
+ $cmd &
undefine_match
}
}