Fixed possible error (uncovered during test) in Irc.die.

This commit is contained in:
Jeremy Fincher 2003-08-26 18:14:59 +00:00
parent 6d8a9e9c23
commit 8f4bc0c325
1 changed files with 2 additions and 1 deletions

View File

@ -515,7 +515,8 @@ class Irc(object):
def die(self):
for callback in self.callbacks:
callback.die()
self.driver.die()
if self.driver is not None:
self.driver.die()
if self in world.ircs:
world.ircs.remove(self)