From d6f6f32219e5b131699589724236af244ed1a2bc Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 6 Apr 2009 17:30:53 -0400 Subject: [PATCH] Factoids: Add an __init__ function which calls our parents' __init__s This ensures that we actually get self.dbCache defined in Factoids Signed-off-by: James Vega --- plugins/Factoids/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 17f6a34f6..44857be0d 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -73,6 +73,10 @@ addConverter('factoid', getFactoid) addConverter('factoidId', getFactoidId) class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): + def __init__(self, irc): + callbacks.Plugin.__init__(self, irc) + plugins.ChannelDBHandler.__init__(self) + def makeDb(self, filename): if os.path.exists(filename): return sqlite.connect(filename)