Limnoria/sandbox/twistedDrivers.py
James Vega c803e5e9d8 Added vim:set ... : strings to source in order to keep file formatting
consistent between developers. Jeremy should be adding the equivalent
settings for emacs soon.
2003-03-24 08:41:19 +00:00

19 lines
508 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'
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: