Why not just use /who ?

Code:

on *:JOIN:#: {
  if ($nick == $me) who #
}


Also, you don't need to to a /userhost on each nick that joins after you because the server sends their address when they join so they're automatically added to the IAL if it's enabled. As far as your while loop goes...

Code:

on *:JOIN:#: {
  if ($nick == $me) {
    var %nicks = 1
    while ($nick($chan,%nicks) != $null) {
      .timer 1 %i userhost $v1
      inc %nicks
    }
  }
  else userhost $nick
}



~ Edit ~
I assumed you were just filling and updating the IAL, my apologies if I was incorrect.

~ Edit ~
Correction.


Last edited by RoCk; 15/01/08 01:41 PM.