I used Raw *:*: { echo -s $rawmsg } and it didn't echo anything at all.

I do however have this crappy code I'vejust whipped up. I think it works, from what I triedit seems to, but if it don't I'm sure someone can patch it up. I've not been to sleep yet, I'm dropping at the keyboard. grin

Code:
on *:Connect: {
  .timer 0 1 privmsg 
}

alias privmsg {
  if (!$isfile($debug)) { return }
  var %x = $lines($debug)
  while (%x) {
    if ($numtok($read($debug,%x),32) == 5) {
      if ($gettok($gettok($gettok($read($debug,%x),2,58),1,64),1,33) != $me)  && ($gettok($read($debug,%x),3,32) == PRIVMSG) && ($gettok($read($debug,%x),4,32) == $me) echo -a I got some text.
    }
    dec %x
  }
}


It may turn out there's a more simpler way and wont need this. Set your debug output to a log file and not window. I used /debug debug.log.

You might even be able to sort the code out if it don't work sufficiently, what it does is reads from the the log file to see if your nickname isn't the bart in blue, it also checks if the raw event was PRIVMSG in red. And will then echo I got some text. If your nickname matches the nickname the PRIVMSG was sent to.

<- :SladeKraven!Andy@=XDkswc54-437-735-342.range81-154.btcentralplus.com PRIVMSG Andy :...

I hope this helps, even a little bit. But my example should show you how to do it if mine don't work sufficiently hehehe.

All the best,

-Andy.