on me:*:JOIN:#:{ .timer 1 1 savenicks }
alias savenicks { var %i = 1 while ( $nick(#,%i) ) { write nicks.txt $ifmatch inc %i } }