quick stylistic things.

This commit is contained in:
Jeremy Fincher 2004-10-01 04:22:18 +00:00
parent efb9b80ab5
commit b6be47abc5

View File

@ -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