fixed empty requests

This commit is contained in:
Dimitar Dimitrov 2013-10-18 11:04:46 -04:00
parent 4eda44a669
commit a1e3cb078f

2
bot.sh
View File

@ -45,7 +45,7 @@ do
fi
will=$(echo "$will" | perl -pe "s/^ //")
com=$(echo "$will" | cut -d " " -f1)
if [ -z "$(ls modules/ | grep -i -- "$com")" ]
if [ -z "$(ls modules/ | grep -i -- "$com")" ] || [ -z "$com" ]
then
./modules/help/help.sh $who $from >> $input
continue