ON *:INVITE:#:{ if ($findtok(%blacklist,#,32)) { notice $nick I'm sorry but your channel is on the AndyScript blacklist }
else { .notice `AnDy` You have been invited into $chan $+ , Do you want me to join? | set %join $chan | set %neek $nick } }
ON $*:NOTICE:/yes|no/Si:*:{
if ($1 == Yes) {
if (!%join) || ($nick != `AnDy`) { halt }
else { join %join | timer 1 2 msg %join Thankyou for choosing AndyBot. | .notice `AnDy` Your command has been completed sucessfully | unset %join | unset %neek | halt }
}
else {
if (!%join) || ($nick != `AnDy`) { halt }
else { .notice `AnDy` I have not been alowed to join %join | .notice %neek I am sorry but there has previously been upsets in your channel | unset %neek | unset %join | halt }
}
}
ON *:kick::#:{
if ($knick == `Andy`) || ($knick == AndyBot) {
set %blacklist $addtok(%blacklist,$2,32) | .notice `Andy` channel $2 has been blacklisted
}
}