I'm looking to make a script that would go down all the channels and across all the servers, and if there are less than 3 people in the channel, leave it. I can do it on an individual channel, but for some reason cannot get it to do multiple ones. here is the code I have:
on 1:text:!run:#: {
.scon -a users
}
alias -l users {
var %users $nick(#,0)
if (%users < 3) { /part $chan }
else { HALT }
}
I'm nowhere near an expert on this, but from what I can gather from the help file is that the .scon line will run the alias users on every connection, which should be what I'm looking for. but it's not working, so i was wondering if anyone could give me a nudge in the right direction.
--Brooklyn