writenicks {
  write -c g:\wwwroot\nicklist.txt
  var %i = 1
  while %i <= $nick(#smfk,0,a) {
    write g:\wwwroot\nicklist.txt $nick(#,%i,a)
    inc %i
  }
}

/smfk /timer1 0 10 /writenicks
