Code:
on ^*:TEXT:*:*: {
  echo 14 $iif($target == $me,$nick,$target) $nick said: $$1
  haltdef
}


is better, because you now only escape if it's a query instead of escaping if it's a channel and ELSE use the query... you should use $target as the default action