diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-03 17:56:39 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-06-03 17:56:39 +0200 |
commit | 209b2f39f1126f1f02d4dc7a0f51233a18a07282 (patch) | |
tree | 090d2304acd56ca38d3771923c814b5830c3f928 | |
parent | 7bc082bb1b3a4a11b0d664ad2d0d84721e1fa838 (diff) |
Clear keywords and message callbacks before applying modules.
-rwxr-xr-x | fot.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -81,6 +81,8 @@ class Bot(irc.IRCClient): if hasattr(m, 'stop'): m.stop() self.modules = {} + self.keywords = {} + self.msg_callbacks = [] server = self.factory.server.split('/', 1)[1] channel_list = config.get(self.factory.server, 'channels').split() |