diff --git a/src/asyncoreDrivers.py b/src/asyncoreDrivers.py index 6631ad66d..4c9741a2c 100644 --- a/src/asyncoreDrivers.py +++ b/src/asyncoreDrivers.py @@ -64,13 +64,14 @@ class AsyncoreDriver(asynchat.async_chat, object): self.server = (server, port) self.reconnect = reconnect self.irc = irc + self.irc.driver = self self.buffer = '' self.set_terminator('\n') self.create_socket(socket.AF_INET, socket.SOCK_STREAM) try: self.connect(self.server) except: - debug.recoverableException() + debug.recoverableException('terse') self.scheduleReconnect() self.close() @@ -124,6 +125,9 @@ class AsyncoreDriver(asynchat.async_chat, object): self.scheduleReconnect() self.die() + def handle_connect(self): + pass + def die(self): self.close()