Use makeChannelFilename.

This commit is contained in:
Jeremy Fincher 2004-08-11 05:00:09 +00:00
parent e85388a1d0
commit 759f38f8e0

View File

@ -92,8 +92,7 @@ conf.registerChannelValue(conf.supybot.plugins.URL, 'nonSnarfingRegexp',
class URLDB(object): class URLDB(object):
def __init__(self, channel, log): def __init__(self, channel, log):
self.log = log self.log = log
dataDir = conf.supybot.directories.data() self.filename = plugins.makeChannelFilename('URL.db', channel)
self.filename = os.path.join(dataDir, '%s-URL.db' % channel)
def _getFile(self): def _getFile(self):
try: try: