You could loop through $nick(#,0)

$nick(#,0) translates into the number of users in the channel
$nick(#,1) translates into the first user's $nick in the channel