On Input is when you type a message in the editbox and press enter. If you have script that sends a msg to the channel you will need to make a new msg alias I believe.

Code:
alias msg {
   echo -tlmi2 $1 $+(,,12,-={,,,2,$chr(32),$nick($1,$me).pnick,$chr(32),,,12,}=-,1,) $2-
    raw $+(:,$address($me,5)) PRIVMSG $1 $+(:,$2-)
}


Im not positive this will work on your server. BUt the idea is the same.