Better filenames for FunDB databases.

This commit is contained in:
Jeremy Fincher 2004-09-23 16:18:41 +00:00
parent e381f11e12
commit 6e1dc647dd

View File

@ -77,7 +77,7 @@ class DbiFunDBDB(object):
if channel not in self.dbs: if channel not in self.dbs:
self.dbs[channel] = {} self.dbs[channel] = {}
if type not in self.dbs[channel]: if type not in self.dbs[channel]:
filename = self.filename.replace('db', '%s.db' % type.capitalize()) filename = self.filename.replace('FunDB', type.capitalize())
filename = plugins.makeChannelFilename(filename, channel) filename = plugins.makeChannelFilename(filename, channel)
self.dbs[channel][type] = self.FunDBDB(filename) self.dbs[channel][type] = self.FunDBDB(filename)
return self.dbs[channel][type] return self.dbs[channel][type]