@bot.command
def showtells(context):

    nick = context.line['user']

    db = get_db_connection()
    db_init(db)

    tells = get_tells(db, nick)

    if not tells:
        bot.reply('You have no pending tells.',
                  context,
                  recipient=nick,
                  notice=True)
        return

    for tell in tells:
        user_from, message, time, chan = tell
        past = timesince(time)
        bot.reply('{0} said {1} ago in {2}: {3}'.format(user_from,
                                                        past,
                                                        chan,
                                                        message),
                  context, recipient=nick, notice=True)

    db.execute('delete from tell where user_to=lower(?)', (nick,))
    db.commit()
When there is no delegate, the CanonicalID should be used with XRI.
dataset/ETHPy150Open maxcountryman/irctk/examples/kaa/kaa/tell.py/showtells--crossover with--dataset/ETHPy150Open adieu/python-openid/openid/test/test_discover.py/TestXRIDiscovery.test_useCanonicalID