on *:INVITE:#: {
if ($chan == #bot_pool) {
notice $nick Sorry, I am not allowed to join $chan $+ .
}
elseif ($address($nick,2) == $address($me,2)) {
join $chan
msg $chan Hello Master
}
else {
join $chan
msg $chan I was invited by $nick $+ . To make me leave, type !leave. For a list of commands, type !commands
timer 1 5 /chancheck $chan
}
}
alias chancheck {
if ($nick($1,0) < 5) {
part $1 Channel does not meet required user minimun of 5
}
else {
msg $chan You have met the user requirement, $1 $+ . Thank you for inviting me.
}
}