on 1:INPUT:#:/msg $chan 4 $1- | haltdef

works perfectly fine


...except that it will also send the commands you type to the channel.

Code:
ON *:INPUT:#: {
  if (/* !iswm $1) {
    msg # $1-
    haltdef
  }
}