'This performs the actual command.'

def func(self):

    clothing = self.caller.search(self.args, candidates=self.caller.contents)
    if (not clothing):
        return
    if (not clothing.db.worn):
        self.caller.msg("You're    not    wearing    that!")
        return
    if clothing.db.covered_by:
        self.caller.msg(('You    have    to    take    off    %s    first.' % clothing.db.covered_by.name))
        return
    clothing.remove(self.caller)
