Guard against an error on exit.

This commit is contained in:
Jeremy Fincher 2003-08-23 10:59:28 +00:00
parent f0b533098c
commit 68b9b5f378

View File

@ -511,7 +511,8 @@ class Irc(object):
def die(self):
for callback in self.callbacks:
callback.die()
world.ircs.remove(self)
if self in world.ircs:
world.ircs.remove(self)
def __hash__(self):
return id(self)