Gotta be sure to basename the journal.

This commit is contained in:
Jeremy Fincher 2004-09-30 09:56:50 +00:00
parent 129b8a212b
commit 8ddf22fabb

View File

@ -755,7 +755,8 @@ registerChannelValue(supybot.databases.plugins, 'channelSpecific',
class CDB(registry.Boolean): class CDB(registry.Boolean):
def connect(self, filename): def connect(self, filename):
journalName = supybot.directories.data.tmp.dirize(filename+'.journal') basename = os.path.basename(filename)
journalName = supybot.directories.data.tmp.dirize(basename+'.journal')
return cdb.open(filename, 'c', return cdb.open(filename, 'c',
journalName=journalName, journalName=journalName,
maxmods=self.maximumModifications()) maxmods=self.maximumModifications())