fixed mac bug

This commit is contained in:
Dimitar Dimitrov 2013-07-22 14:33:08 +01:00
parent 15261c173d
commit e78be1ccdc

2
bot.sh
View File

@ -41,7 +41,7 @@ do
will=$(echo "$res" | perl -pe "s/.*$nick :(.*)/\1/")
from=$who
fi
com=$(echo "$will" | grep -Eio "[a-z]*" | head -n1 | tail -n1)
com=$(echo "$will" | cut -d " " -f 2)
if [ -z "$(ls modules/ | grep -i -- "$com.sh")" ]
then
./modules/help.sh $who $from >> $input