We shouldn't toLower until we know it's not None.

This commit is contained in:
Jeremy Fincher 2004-10-01 21:27:44 +00:00
parent 8afad62691
commit 9d5a04ba95
1 changed files with 1 additions and 1 deletions

View File

@ -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: