diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-12 21:32:47 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-12 21:32:47 +0200 |
commit | d1e2e9699cf99c3c5947a082b10ef649e7c79885 (patch) | |
tree | 9221e232370c85098e76fc92c7a2ffffe6719fe2 | |
parent | b670ee74e06599f578949806219ac92798e19822 (diff) |
Delete instance from bots list when disconnecting.
-rwxr-xr-x | fot.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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') |