mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +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
|
self.suffix = suffix
|
||||||
|
|
||||||
def makeFilename(self, channel):
|
def makeFilename(self, channel):
|
||||||
|
channel = ircutils.toLower(channel)
|
||||||
prefix = '%s-%s%s' % (channel, self.__class__.__name__, self.suffix)
|
prefix = '%s-%s%s' % (channel, self.__class__.__name__, self.suffix)
|
||||||
return os.path.join(conf.dataDir, prefix)
|
return os.path.join(conf.dataDir, prefix)
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ class ChannelDBHandler(object):
|
|||||||
return cdb.shelf(filename)
|
return cdb.shelf(filename)
|
||||||
|
|
||||||
def getDb(self, channel):
|
def getDb(self, channel):
|
||||||
|
channel = ircutils.toLower(channel)
|
||||||
try:
|
try:
|
||||||
return self.dbCache[channel]
|
return self.dbCache[channel]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user