this is just a simple bit of code that will automatically part a channel when there are less than 5 users in it
simply put it in remotes section and it should be good to go
where it says ($chan != #A_A) u can replace #A_A with your own channel so it doesn't part your channel
on *:JOIN:#: {
if ($nick == $me) && ($chan != #A_A) {
.timer 1 5 _usercount $chan
}
}
on *:PART:#: {
if ($nick(#,0) < 5) && ($chan != #A_A) {
part $chan User count less than 5
}
}
alias _usercount {
var %users $nick($1,0)
if (%users < 5) {
part $1 User count less than 5
}
}