Maybe this, it checks if $nick is a matching highlight entry and if there is a matching entry it uses whatever color was set there.
Code:
on *:text:*:#:{
  if $highlight($nick).color { echo $v1 -mbflirt # $+(<,$nick,>) $1- }  
}