MIRC

nicks { set -l %i 1 while ($nick($chan,%i)) { write nicks.txt $v1 inc %i } }
 * http://forums.mirc.com/ubbthreads.php/topics/243106/Export_the_list_of_users
 * saved to: C:\Users\?user_name?\AppData\Roaming\mIRC