def direct(zelf, txt):
    """ output txt directly. """
    if '_socket' in zelf:
        try:
            zelf._socket.write(txt)
        except TypeError:
            zelf._socket.write(str(txt))
        zelf._socket.write('\n')
        zelf._socket.flush()
    else:
        zelf.say_id(zelf.id(), zelf.channel, txt)
