I don't get the text event, this should be purely an alias.

Also, I don't think that will work on all networks, without a scon.

Code:
alias users {
  .scon -at1 u2
}
alias u2 {
  %i = 1
  while %i <= $chan(0) {
    if $nick($chan(%i),0) < 3 %part = %part $+ , $+ $chan(%i)
    inc %i
  }
  part %part
}


This way you just do /users
And it'll work.

I'd recommend changing the first alias`s name.

ziv.