mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +01:00
Must've forgotten this one earlier.
This commit is contained in:
parent
019a648617
commit
f39b35eb9b
@ -12,6 +12,7 @@ import os
|
||||
import cdb
|
||||
import conf
|
||||
import world
|
||||
import ircutils
|
||||
import callbacks
|
||||
|
||||
class ChannelDBHandler(object):
|
||||
@ -19,7 +20,7 @@ class ChannelDBHandler(object):
|
||||
"""
|
||||
suffix = '.db'
|
||||
def __init__(self, suffix='.db'):
|
||||
self.dbCache = {}
|
||||
self.dbCache = ircutils.IrcDict()
|
||||
suffix = self.suffix
|
||||
if self.suffix and self.suffix[0] != '.':
|
||||
suffix = '.' + suffix
|
||||
@ -34,7 +35,6 @@ 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