Limnoria/sandbox/twistedDrivers.py
2003-03-12 06:26:59 +00:00

19 lines
452 B
Python

#!/usr/bin/env python
from fix import *
import drivers
import twisted.protocols
class TwistedDriver(drivers.IrcDriver, twisted.protocols.basic.LineReceiver):
def __init__(self, name, irc, (server, port), reconnect=True):
drivers.IrcDriver.__init__(self, name)
self.name = name
self.server = (server, port)
self.reconnect = reconnect
self.irc = irc
irc.driver = irc
self.delimiter = '\n'