#NEWLINE# def connectionLost( self , r ) : #NEWLINE# #INDENT# self . mostRecentCall . cancel ( ) #NEWLINE# if r . check ( error . ConnectionDone ) : #NEWLINE# #INDENT# drivers . log . disconnect ( r . factory . currentServer ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# drivers . log . disconnect ( self . factory . currentServer , errorMsg ( r ) ) #NEWLINE# #UNINDENT# if self . irc . zombie : #NEWLINE# #INDENT# self . factory . stopTrying ( ) #NEWLINE# while self . irc . takeMsg ( ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . irc . reset ( )