def nickmask(prefix, kwargs):
    if "!" in prefix and "@" in prefix:
        # From a user
        kwargs['nick'], remainder = prefix.split('!', 1)
        kwargs['user'], kwargs['host'] = remainder.split('@', 1)
    else:
        # From a server, probably the host
        kwargs['host'] = prefix
Make a "live" L{LivePage} for testing.
dataset/ETHPy150Open numberoverzero/bottom/bottom/unpack.py/nickmask--crossover with--dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/LiveMixinTestsMixin.makePage