From 5bf71395e71ab00a7ad25186c31b0c0394cbabdf Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Wed, 18 Nov 2009 02:27:48 -0500 Subject: [PATCH] another step toward sqlite3 --- plugins/Factoids/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 89e4e8ae4..2f22ed482 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -426,7 +426,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): irc.reply('No keys matched that query.') elif len(results) == 1 and \ self.registryValue('showFactoidIfOnlyOneMatch', channel): - self.whatis(irc, msg, [cursor.fetchone()[0]]) + self.whatis(irc, msg, [results[0]]) elif len(results) > 100: irc.reply('More than 100 keys matched that query; ' 'please narrow your query.')