Thank you for your help Raccoon! The script I tried is:

Code:
on ^*:text:*:#zzzz:{
  if ($nick == mrc-test) {
    echo -t $chan $+(<,$nick,>) $replace($1-,$chr(40) $+ $chr(32),[,$chr(32) $+ $chr(41),])
    haltdef
  }
}


I created 2 connections to a server and joined test channel #zzzz with "mrc-test" and "beer". From mrc-test I wrote:
"abc ( TEST ) def"

In beer's window I saw:
"[16:28:45] <mrc-test> abc [TEST] def"

And in beer's server window I saw:
"[16:28:46] #ZZZZ Unknown command"

Using "$replace($1-2," wasn't working so I tried changing it to "$replace($1-," and that fixed it. But, I have no clue why the "#ZZZZ Unknown command" is happening. Any ideas?

Last edited by beer; 02/03/17 12:57 AM.