fixed talk errors

This commit is contained in:
Dimitar Dimitrov
2013-07-22 17:16:31 +01:00
parent 509a51f967
commit 9ac2cf758c
2 changed files with 5 additions and 3 deletions

4
bot.sh
View File

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