mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 07:34:08 +01:00
We shouldn't toLower until we know it's not None.
This commit is contained in:
parent
8afad62691
commit
9d5a04ba95
@ -153,11 +153,11 @@ class DBHandler(object):
|
||||
|
||||
|
||||
def makeChannelFilename(filename, channel=None, dirname=None):
|
||||
channel = ircutils.toLower(channel)
|
||||
# ??? This may not be right.
|
||||
filename = os.path.basename(filename)
|
||||
if channel is not None and \
|
||||
conf.get(conf.supybot.databases.plugins.channelSpecific, channel):
|
||||
channel = ircutils.toLower(channel)
|
||||
if dirname is None:
|
||||
dir = conf.supybot.directories.data.dirize(channel)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user