mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-13 04:01:05 +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):
|
def makeChannelFilename(filename, channel=None, dirname=None):
|
||||||
channel = ircutils.toLower(channel)
|
|
||||||
# ??? This may not be right.
|
# ??? This may not be right.
|
||||||
filename = os.path.basename(filename)
|
filename = os.path.basename(filename)
|
||||||
if channel is not None and \
|
if channel is not None and \
|
||||||
conf.get(conf.supybot.databases.plugins.channelSpecific, channel):
|
conf.get(conf.supybot.databases.plugins.channelSpecific, channel):
|
||||||
|
channel = ircutils.toLower(channel)
|
||||||
if dirname is None:
|
if dirname is None:
|
||||||
dir = conf.supybot.directories.data.dirize(channel)
|
dir = conf.supybot.directories.data.dirize(channel)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user