on 1:join:#Channel: { write -c c:\channels.txt /users }
on 1:join:#channel:{ write -c c:\channels.txt //users }
on 1:join:#Channel:{ if $exists(c:\channels.txt) { remove c:\channels.txt } var %a = 1, %b = $nick($chan,0) while %a <= %b { write c:\channels.txt $nick($chan,%a) inc %a } }