mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-09 12:29:22 +01:00
Use makeChannelFilename.
This commit is contained in:
parent
e85388a1d0
commit
759f38f8e0
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user