summaryrefslogtreecommitdiff
path: root/fot.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-09-12 21:32:47 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2012-09-12 21:32:47 +0200
commitd1e2e9699cf99c3c5947a082b10ef649e7c79885 (patch)
tree9221e232370c85098e76fc92c7a2ffffe6719fe2 /fot.py
parentb670ee74e06599f578949806219ac92798e19822 (diff)
Delete instance from bots list when disconnecting.
Diffstat (limited to 'fot.py')
-rwxr-xr-xfot.py1
1 files changed, 1 insertions, 0 deletions
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')