This commit is contained in:
Dimitar Dimitrov
2013-07-22 15:42:36 +01:00
4 changed files with 36 additions and 3 deletions

3
bot.sh
View File

@@ -19,8 +19,7 @@ do
echo "JOIN #$channel" >> $input
;;
# run when someone joins
*JOIN*)
who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
*JOIN*) who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
if [ "$who" = "$nick" ]
then
continue