mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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)
|
addConverter('factoidId', getFactoidId)
|
||||||
|
|
||||||
class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||||
|
def __init__(self, irc):
|
||||||
|
callbacks.Plugin.__init__(self, irc)
|
||||||
|
plugins.ChannelDBHandler.__init__(self)
|
||||||
|
|
||||||
def makeDb(self, filename):
|
def makeDb(self, filename):
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
return sqlite.connect(filename)
|
return sqlite.connect(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user