I've just tried this. Seems to work for me.

Code:
On *:Join:#: {
  if ($nick == $me) { who $chan }
  who $nick 
}

alias nickLUST {
  if ($1 == color) {
    var %x = $hget(ircops,0).item
    while (%x) {
      if ($3 == $hget(ircops,%x).item) return $rgb(0,255,255)
      dec %x
    }
    return USE_DEFAULT
  }
}

Raw 352:*: {
  if (* isin $7) { 
    hadd -m ircops $6 $6
  }
}