From e1b89acded5a5ffd4e5438e2b808bbc9fb418cc2 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 28 May 2010 20:18:23 +0200 Subject: Remove all callbacks on disconnect. --- fot.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fot.py') 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): -- cgit v1.2.3