not to sure but i think he meant users who were not voiced ? anyhow that would be like $nick($chan,0,r) if you need more help take a look at /help $nick
ah yeah that will work as well but i was assuming he was just wanting nonvoiced no oped etc..but perhaps your is correct and anyhow prolly better to do it like that anyhow and just add in the o and h params .