forgot some stuff

This commit is contained in:
Ben Harris 2018-10-30 17:39:10 -04:00
parent d7cf3771c6
commit 50115e9552
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
1 changed files with 3 additions and 0 deletions

3
bot.sh
View File

@ -67,9 +67,12 @@ do
# "#" would mean it's a channel
if [ "$(echo "$from" | grep '^#')" ]; then
test "$(echo "$res" | grep ":$nick:")" || continue
will=$(echo "$res" | perl -pe "s/.*:$nick:(.*)/\1/")
else
will=$(echo "$res" | perl -pe "s/.*$nick :(.*)/\1/")
from=$who
fi
will=$(echo "$will" | perl -pe "s/^ //")
com=$(echo "$will" | cut -d " " -f1)
case "$com" in