'check inventory'

def func(self):

    if (not self.caller.contents):
        self.caller.msg('You    are    not    carrying    or    wearing    anything.')
        return
    items = self.caller.contents
    carry_table = evtable.EvTable(border='header')
    wear_table = evtable.EvTable(border='header')
    for item in items:
        if (not item.db.worn):
            carry_table.add_row(('|C%s|n' % item.name), (item.db.desc or ''))
    if (carry_table.nrows == 0):
        carry_table.add_row('|CNothing.|n', '')
    string = ('|wYou    are    carrying:\n%s' % carry_table)
    for item in items:
        if item.db.worn:
            wear_table.add_row(('|C%s|n' % item.name), (item.db.desc or ''))
    if (wear_table.nrows == 0):
        wear_table.add_row('|CNothing.|n', '')
    string += ('|/|wYou    are    wearing:\n%s' % wear_table)
    self.caller.msg(string)
