Damn you do things the hard way....

Code:
on ^*:QUIT: {
  var %i = 1
  while ($comchan($nick,%i) {
    echo $color(quit) -t $ifmatch * Quit: $nick ( $+ $address $+ ) ( $+ $1- $+ )
    inc %i
  }
  haltdef
}


For returning the number of users on a channel use $nick($chan,0)
Here's some code I use...

Code:
on me:^*:join:#: {
  echo $color(join) -t * Now talking in: $chan
  .enable #join
  halt
}

#join off
raw 353:*: {
  echo $3 Users: @ - $nick($3,0,o) / % - $nick($3,0,h) / + - $nick($3,0,v) / regular - $nick($3,0,r) / total - $nick($3,0)
  halt
}
raw 366:*: { .disable #join | halt }
#join end

Last edited by lammkott; 01/07/03 03:09 AM.