Changed DBHandler to ChannelDBHandler

This commit is contained in:
Jeremy Fincher 2003-03-28 05:15:08 +00:00
parent 5f77c05cad
commit 55aaa596e0
4 changed files with 7 additions and 7 deletions

View File

@ -55,10 +55,10 @@ frowns = (':|', ':-/', ':-\\', ':\\', ':/', ':(', ':-(', ':\'(')
smileyre = re.compile('|'.join([re.escape(s) for s in smileys]))
frownre = re.compile('|'.join([re.escape(s) for s in frowns]))
class ChannelStats(callbacks.Privmsg, DBHandler):
class ChannelStats(callbacks.Privmsg, ChannelDBHandler):
def __init__(self):
callbacks.Privmsg.__init__(self)
DBHandler.__init__(self)
ChannelDBHandler.__init__(self)
def makeDb(self, filename):
if os.path.exists(filename):

View File

@ -55,9 +55,9 @@ import ircdb
import privmsgs
import callbacks
class Factoids(DBHandler, callbacks.Privmsg):
class Factoids(ChannelDBHandler, callbacks.Privmsg):
def __init__(self):
DBHandler.__init__(self)
ChannelDBHandler.__init__(self)
callbacks.Privmsg.__init__(self)
def makeDb(self, filename):

View File

@ -52,9 +52,9 @@ import ircdb
import privmsgs
import callbacks
class Quotes(DBHandler, callbacks.Privmsg):
class Quotes(ChannelDBHandler, callbacks.Privmsg):
def __init__(self):
DBHandler.__init__(self)
ChannelDBHandler.__init__(self)
callbacks.Privmsg.__init__(self)
def makeDb(self, filename):

View File

@ -14,7 +14,7 @@ import conf
import world
import callbacks
class DBHandler(object):
class ChannelDBHandler(object):
"""A class to handle database stuff for individual channels transparently.
"""
suffix = '.db'