mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Changed DBHandler to ChannelDBHandler
This commit is contained in:
parent
5f77c05cad
commit
55aaa596e0
@ -55,10 +55,10 @@ frowns = (':|', ':-/', ':-\\', ':\\', ':/', ':(', ':-(', ':\'(')
|
|||||||
smileyre = re.compile('|'.join([re.escape(s) for s in smileys]))
|
smileyre = re.compile('|'.join([re.escape(s) for s in smileys]))
|
||||||
frownre = re.compile('|'.join([re.escape(s) for s in frowns]))
|
frownre = re.compile('|'.join([re.escape(s) for s in frowns]))
|
||||||
|
|
||||||
class ChannelStats(callbacks.Privmsg, DBHandler):
|
class ChannelStats(callbacks.Privmsg, ChannelDBHandler):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
callbacks.Privmsg.__init__(self)
|
callbacks.Privmsg.__init__(self)
|
||||||
DBHandler.__init__(self)
|
ChannelDBHandler.__init__(self)
|
||||||
|
|
||||||
def makeDb(self, filename):
|
def makeDb(self, filename):
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
|
@ -55,9 +55,9 @@ import ircdb
|
|||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
class Factoids(DBHandler, callbacks.Privmsg):
|
class Factoids(ChannelDBHandler, callbacks.Privmsg):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
DBHandler.__init__(self)
|
ChannelDBHandler.__init__(self)
|
||||||
callbacks.Privmsg.__init__(self)
|
callbacks.Privmsg.__init__(self)
|
||||||
|
|
||||||
def makeDb(self, filename):
|
def makeDb(self, filename):
|
||||||
|
@ -52,9 +52,9 @@ import ircdb
|
|||||||
import privmsgs
|
import privmsgs
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
class Quotes(DBHandler, callbacks.Privmsg):
|
class Quotes(ChannelDBHandler, callbacks.Privmsg):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
DBHandler.__init__(self)
|
ChannelDBHandler.__init__(self)
|
||||||
callbacks.Privmsg.__init__(self)
|
callbacks.Privmsg.__init__(self)
|
||||||
|
|
||||||
def makeDb(self, filename):
|
def makeDb(self, filename):
|
||||||
|
@ -14,7 +14,7 @@ import conf
|
|||||||
import world
|
import world
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
class DBHandler(object):
|
class ChannelDBHandler(object):
|
||||||
"""A class to handle database stuff for individual channels transparently.
|
"""A class to handle database stuff for individual channels transparently.
|
||||||
"""
|
"""
|
||||||
suffix = '.db'
|
suffix = '.db'
|
||||||
|
Loading…
Reference in New Issue
Block a user