mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 00:49:33 +01:00
19 lines
452 B
Python
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'
|
||
|
|