'Implement the command'

def func(self):

    caller = self.caller
    args = self.args
    player = caller
    if (not args):
        self.msg('Usage:    addcom    [alias    =]    channelname.')
        return
    if self.rhs:
        channelname = self.rhs
        alias = self.lhs
    else:
        channelname = self.args
        alias = None
    channel = find_channel(caller, channelname)
    if (not channel):
        return
    if (not channel.access(player, 'listen')):
        self.msg(('%s:    You    are    not    allowed    to    listen    to    this    channel.' % channel.key))
        return
    string = ''
    if (not channel.has_connection(player)):
        if (not channel.connect(player)):
            self.msg(('%s:    You    are    not    allowed    to    join    this    channel.' % channel.key))
            return
        else:
            string += ('You    now    listen    to    the    channel    %s.    ' % channel.key)
    elif channel.unmute(player):
        string += ('You    unmute    channel    %s.' % channel.key)
    else:
        string += ('You    are    already    connected    to    channel    %s.' % channel.key)
    if alias:
        caller.nicks.add(alias, channel.key, category='channel')
        string += "    You    can    now    refer    to    the    channel    %s    with    the    alias    '%s'."
        self.msg((string % (channel.key, alias)))
    else:
        string += '    No    alias    added.'
        self.msg(string)
