'run the function'

def func(self):

    if (not self.args):
        string = 'Usage:    @clock    channel    [=    lockstring]'
        self.msg(string)
        return
    channel = find_channel(self.caller, self.lhs)
    if (not channel):
        return
    if (not self.rhs):
        string = ('Current    locks    on    %s:' % channel.key)
        string = ('%s\n    %s' % (string, channel.locks))
        self.msg(string)
        return
    if (not channel.access(self.caller, 'control')):
        string = "You    don't    control    this    channel."
        self.msg(string)
        return
    try:
        channel.locks.add(self.rhs)
    except LockException as err:
        self.msg(err)
        return
    string = 'Lock(s)    applied.    '
    string += ('Current    locks    on    %s:' % channel.key)
    string = ('%s\n    %s' % (string, channel.locks))
    self.msg(string)
