summaryrefslogtreecommitdiff
path: root/fot.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-05-28 20:18:23 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-05-28 20:18:23 +0200
commite1b89acded5a5ffd4e5438e2b808bbc9fb418cc2 (patch)
tree1dcd0b15e719e9d1126538da4ca8abf19ae7b48d /fot.py
parent518ca24f1dae784a23ab7541a506fde42db01a3b (diff)
Remove all callbacks on disconnect.
Diffstat (limited to 'fot.py')
-rwxr-xr-xfot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fot.py b/fot.py
index c6e3e6c..93b5309 100755
--- a/fot.py
+++ b/fot.py
@@ -142,6 +142,8 @@ class Bot(irc.IRCClient):
if hasattr(m, 'stop'):
m.stop()
self.modules = {}
+ self.keywords = {}
+ self.msg_callbacks = []
irc.IRCClient.connectionLost(self, reason)
def reconnect(self):