mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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 <jamessan@users.sourceforge.net>
This commit is contained in:
parent
804fbe8209
commit
d6f6f32219
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user