Do you mean like this?

on *:INPUT:#channel:{ if ($1 == .msg)

and then it return the input to the channel?