Prevented deprecation warning and added another logging feature.

This commit is contained in:
Jeremy Fincher 2003-04-20 01:18:09 +00:00
parent a861941626
commit f6488d6071

View File

@ -46,8 +46,9 @@ class SupyIrcProtocol(LineReceiver):
self.transport.write(str(msg))
self.mostRecentCall = reactor.callLater(1, self.checkIrcForMsgs)
def connectionLost(self):
def connectionLost(self, failure):
self.mostRecentCall.cancel()
debug.msg(failure.getErrorMessage(), 'normal')
def connectionMade(self):
self.factory.irc.driver = self