another step toward sqlite3

This commit is contained in:
Daniel Folkinshteyn 2009-11-18 02:27:48 -05:00
parent cc1f4ea015
commit 5bf71395e7
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
irc.reply('No keys matched that query.') irc.reply('No keys matched that query.')
elif len(results) == 1 and \ elif len(results) == 1 and \
self.registryValue('showFactoidIfOnlyOneMatch', channel): self.registryValue('showFactoidIfOnlyOneMatch', channel):
self.whatis(irc, msg, [cursor.fetchone()[0]]) self.whatis(irc, msg, [results[0]])
elif len(results) > 100: elif len(results) > 100:
irc.reply('More than 100 keys matched that query; ' irc.reply('More than 100 keys matched that query; '
'please narrow your query.') 'please narrow your query.')