diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-28 20:18:23 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-28 20:18:23 +0200 |
commit | e1b89acded5a5ffd4e5438e2b808bbc9fb418cc2 (patch) | |
tree | 1dcd0b15e719e9d1126538da4ca8abf19ae7b48d | |
parent | 518ca24f1dae784a23ab7541a506fde42db01a3b (diff) |
Remove all callbacks on disconnect.
-rwxr-xr-x | fot.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |