If you want it in one-line, add the tube | at each new line:
(an single copy-paste will not pass the carriage return with multi-lines)

Code:
on *:INPUT:#:{ /var %text = $1- | %text = $replacecs(%text, channel, $chan, chan, $chan) | /say %text | /haltdef }