'Implement function'

def func(self):

    if ((not self.args) or (not self.rhs)):
        string = 'Usage:    @cemit[/switches]    <channel>    =    <message>'
        self.msg(string)
        return
    channel = find_channel(self.caller, self.lhs)
    if (not channel):
        return
    if (not channel.access(self.caller, 'control')):
        string = "You    don't    control    this    channel."
        self.msg(string)
        return
    message = self.rhs
    if ('sendername' in self.switches):
        message = ('%s:    %s' % (self.caller.key, message))
    channel.msg(message)
    if ('quiet' not in self.switches):
        string = ('Sent    to    channel    %s:    %s' % (channel.key, message))
        self.msg(string)
