Added ability to autorejoin after being kicked.

This commit is contained in:
Storm Dragon
2017-04-28 19:20:45 -04:00
parent c5ee416be9
commit f559edad96
2 changed files with 9 additions and 1 deletions

6
bot.sh
View File

@ -40,6 +40,12 @@ do
*"You have not"*)
echo "JOIN #$channel" | tee -a "$input"
;;
# Run on kick
:*!*@*" KICK "*" $nick :"*)
if [ "$autoRejoinChannel" = "true" ]; then
echo "JOIN #$c" | tee -a "$input"
fi
;;
# run when someone joins
*"JOIN :#"*)
who="${result%%!*}"