You know what would be nice, a HIGHLIGHT event that would basically behave just like the TEXT event with the same identifiers and all. Also an identifier for the word/string that triggered...

$1- would return the entire message just like the TEXT event.
$highlight would return the word or string that triggered the event.

With this event you could do...

Code:

on *:HIGHLIGHT:*:#: {
  if (!$window(@Highlight)) window @Highlight
  aline @Highlight $timestamp # : $+(<,$nick,>) $1-
  aline @Highlight -
}



~ Edit ~
If not the HIGHLIGHT event, then maybe a new IF statement operator for the TEXT event, ISHIGHLIGHT...

Code:

on *:TEXT:*:#: {
  if ($1- ishighlight) {
    if (!$window(@Highlight)) window @Highlight
    aline @Highlight $timestamp # : $+(<,$nick,>) $1-
    aline @Highlight -
  }
}



Any opinions?