mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-13 22:29:23 +01:00
Made ChannelDBHandler lowercase channels.
This commit is contained in:
parent
241e493755
commit
a576de04b1
@ -26,6 +26,7 @@ class ChannelDBHandler(object):
|
||||
self.suffix = suffix
|
||||
|
||||
def makeFilename(self, channel):
|
||||
channel = ircutils.toLower(channel)
|
||||
prefix = '%s-%s%s' % (channel, self.__class__.__name__, self.suffix)
|
||||
return os.path.join(conf.dataDir, prefix)
|
||||
|
||||
@ -33,6 +34,7 @@ class ChannelDBHandler(object):
|
||||
return cdb.shelf(filename)
|
||||
|
||||
def getDb(self, channel):
|
||||
channel = ircutils.toLower(channel)
|
||||
try:
|
||||
return self.dbCache[channel]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user