'This performs the actual command.'

def func(self):

    if (not self.args):
        self.caller.msg('Usage:    uncover    <worn    clothing    object>')
        return
    to_uncover = self.caller.search(self.args, candidates=self.caller.contents)
    if (not to_uncover):
        return
    if (not to_uncover.db.worn):
        self.caller.msg(("You're    not    wearing    %s!" % to_uncover.name))
        return
    if (not to_uncover.db.covered_by):
        self.caller.msg(("%s    isn't    covered    by    anything!" % to_uncover.name))
        return
    covered_by = to_uncover.db.covered_by
    if covered_by.db.covered_by:
        self.caller.msg(('%s    is    under    too    many    layers    to    uncover.' % to_uncover.name))
        return
    self.caller.location.msg_contents(('%s    uncovers    %s.' % (self.caller, to_uncover.name)))
    to_uncover.db.covered_by = None
