remove unneeded quotes

This commit is contained in:
Ben Harris 2020-06-17 11:40:06 -04:00
parent 118ec4e189
commit 7ae1f26cb6
1 changed files with 3 additions and 3 deletions

6
bot.sh
View File

@ -90,10 +90,10 @@ do
# "#" would mean it's a channel
if [[ $from =~ ^#.* ]]; then
test "$(printf "%s" "$line" | grep ":$nick:")" || continue
args=$(printf "%s" "$line" | sed -E "s/.*:$nick:(.*)/\1/")
test "$(printf %s "$line" | grep ":$nick:")" || continue
args=$(printf %s "$line" | sed -E "s/.*:$nick:(.*)/\1/")
else
args=$(printf "%s" "$line" | sed -E "s/.*$nick :(.*)/\1/")
args=$(printf %s "$line" | sed -E "s/.*$nick :(.*)/\1/")
from="$who"
fi