'Implement function'

def func(self):

    player = self.player
    sessions = player.sessions.all()
    table = evtable.EvTable('|wsessid', '|wprotocol', '|whost', '|wpuppet/character', '|wlocation')
    for sess in sorted(sessions, key=(lambda x: x.sessid)):
        char = player.get_puppet(sess)
        table.add_row(str(sess.sessid), str(sess.protocol_key), (((type(sess.address) == tuple) and sess.address[0]) or sess.address), ((char and str(char)) or 'None'), ((char and str(char.location)) or 'N/A'))
        self.msg(('|wYour    current    session(s):|n\n%s' % table))
