From 209b2f39f1126f1f02d4dc7a0f51233a18a07282 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 3 Jun 2010 17:56:39 +0200 Subject: Clear keywords and message callbacks before applying modules. --- fot.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.3