Limnoria/sandbox/twistedDrivers.py

19 lines
452 B
Python
Raw Normal View History

2003-03-12 07:26:59 +01:00
#!/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'