From d1e2e9699cf99c3c5947a082b10ef649e7c79885 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 12 Sep 2012 21:32:47 +0200 Subject: Delete instance from bots list when disconnecting. --- fot.py | 1 + 1 file changed, 1 insertion(+) (limited to 'fot.py') diff --git a/fot.py b/fot.py index 264a4d9..01f91d6 100755 --- a/fot.py +++ b/fot.py @@ -159,6 +159,7 @@ class Bot(irc.IRCClient): self.keywords = {} self.msg_callbacks = [] irc.IRCClient.connectionLost(self, reason) + del bots[bots.index(self)] def reconnect(self): self.quit('reconnecting') -- cgit v1.2.3