/msg $chan <message>

Note the red. This works in *most* events, but not all. Some exeptions are on QUIT and on NICK. In those cases, you can use $comchan(<name>, <Channel N>)