Code:
on *:TEXT:*:#: {
  if ($highlight($1-) && !isnum $1-) .ignore $nick
}


untested but something like this will do what you want


If it ain't broken, don't fix it!