echo into specific channel windows not just into the currently active one. something like:

Code:
 on *:JOIN:*: {
  if ($nick == $me) {
    echo $color(join) -t $chan Joining $chan
    haltdef
  }
} 


should be a good enough example. also to get the amount of users use $nick(#chan,0,..) where .. is either, a (all), o (ops), h (halfops), v (voice), r (normal).