summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-06-03 17:56:39 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-06-03 17:56:39 +0200
commit209b2f39f1126f1f02d4dc7a0f51233a18a07282 (patch)
tree090d2304acd56ca38d3771923c814b5830c3f928
parent7bc082bb1b3a4a11b0d664ad2d0d84721e1fa838 (diff)
Clear keywords and message callbacks before applying modules.
-rwxr-xr-xfot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fot.py b/fot.py
index 93b5309..5f313f4 100755
--- a/fot.py
+++ b/fot.py
@@ -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()