Sox, I would use elseifs.
if ($nick isop $chan) { elseif ($nick ishop $chan) { elseif ($nick isvoice $chan) {
Because you could be op and voice, and it'll say "yes you are op. no you are voice".
Oh and you don't need the else { halt }.