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):
def __init__(self, channel, log):
self.log = log
dataDir = conf.supybot.directories.data()
self.filename = os.path.join(dataDir, '%s-URL.db' % channel)
self.filename = plugins.makeChannelFilename('URL.db', channel)
def _getFile(self):
try: