'Create a new message and send it to channel, using
the already formatted input.'

def func(self):

    global _CHANNELDB
    if (not _CHANNELDB):
        from evennia.comms.models import ChannelDB as _CHANNELDB
    (channelkey, msg) = self.args
    caller = self.caller
    if (not msg):
        self.msg(_('Say    what?'))
        return
    channel = _CHANNELDB.objects.get_channel(channelkey)
    if (not channel):
        self.msg((_("Channel    '%s'    not    found.") % channelkey))
        return
    if (not channel.has_connection(caller)):
        string = _("You    are    not    connected    to    channel    '%s'.")
        self.msg((string % channelkey))
        return
    if (not channel.access(caller, 'send')):
        string = _("You    are    not    permitted    to    send    to    channel    '%s'.")
        self.msg((string % channelkey))
        return
    if (msg == 'on'):
        caller = (caller if (not hasattr(caller, 'player')) else caller.player)
        unmuted = channel.unmute(caller)
        if unmuted:
            self.msg(('You    start    listening    to    %s.' % channel))
            return
        self.msg(('You    were    already    listening    to    %s.' % channel))
        return
    if (msg == 'off'):
        caller = (caller if (not hasattr(caller, 'player')) else caller.player)
        muted = channel.mute(caller)
        if muted:
            self.msg(('You    stop    listening    to    %s.' % channel))
            return
        self.msg(('You    were    already    not    listening    to    %s.' % channel))
        return
    if (self.history_start is not None):
        log_file = channel.attributes.get('log_file', default=('channel_%s.log' % channel.key))
        send_msg = (lambda lines: self.msg(''.join(((line.split('[-]', 1)[1] if ('[-]' in line) else line) for line in lines))))
        tail_log_file(log_file, self.history_start, 20, callback=send_msg)
    else:
        caller = (caller if (not hasattr(caller, 'player')) else caller.player)
        if (caller in channel.mutelist):
            self.msg(('You    currently    have    %s    muted.' % channel))
            return
        channel.msg(msg, senders=self.caller, online=True)
