mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
quick stylistic things.
This commit is contained in:
parent
efb9b80ab5
commit
b6be47abc5
@ -216,10 +216,7 @@ class SqliteLookupDB(object):
|
|||||||
else:
|
else:
|
||||||
return cursor.fetchall()
|
return cursor.fetchall()
|
||||||
|
|
||||||
LookupDB = plugins.DB('Lookup',
|
LookupDB = plugins.DB('Lookup', {'sqlite': SqliteLookupDB,})
|
||||||
{'sqlite': SqliteLookupDB,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
class Lookup(callbacks.Privmsg):
|
class Lookup(callbacks.Privmsg):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -314,7 +311,8 @@ class Lookup(callbacks.Privmsg):
|
|||||||
group = conf.supybot.plugins.Lookup.lookups
|
group = conf.supybot.plugins.Lookup.lookups
|
||||||
conf.registerGlobalValue(group, name, registry.String(filename, ''))
|
conf.registerGlobalValue(group, name, registry.String(filename, ''))
|
||||||
#print 'nokey: %s' % nokey
|
#print 'nokey: %s' % nokey
|
||||||
conf.registerGlobalValue(group.get(name), 'nokey', registry.Boolean(nokey, ''))
|
conf.registerGlobalValue(group.get(name), 'nokey',
|
||||||
|
registry.Boolean(nokey, ''))
|
||||||
|
|
||||||
def delRegistryValues(self, name):
|
def delRegistryValues(self, name):
|
||||||
group = conf.supybot.plugins.Lookup.lookups
|
group = conf.supybot.plugins.Lookup.lookups
|
||||||
|
Loading…
Reference in New Issue
Block a user