Use the end of names reply instead of the name reply itself. Like Monosex says, you can use $nick(#,0,0) once you are finished getting the names replies. Example:
Code:
raw 366:*: {
  if ($me ison $2) {
    echo $color(info) -ti2 $2 Ops: $nick($2,0,o)
    echo $color(info) -ti2 $2 Half-Ops: $nick($2,0,h)
    echo $color(info) -ti2 $2 Voiced: $nick($2,0,v)
    echo $color(info) -ti2 $2 Regular: $nick($2,0,r)
  }
}