From 7869b962d1dc695eb2673478b197c9e19139987f Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 11 Apr 2010 11:04:45 -0400 Subject: [PATCH] Fix the previous Factoids fix. channel needs to be part of the args list. Signed-off-by: James Vega (cherry picked from commit fe07ea11465785db69e13f034ea8f2e219b5c64c) --- 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 8460e09ee..30d366fce 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -417,7 +417,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): irc.reply('No keys matched that query.') elif cursor.rowcount == 1 and \ self.registryValue('showFactoidIfOnlyOneMatch', channel): - self.whatis(irc, msg, channel, [cursor.fetchone()[0]]) + self.whatis(irc, msg, [channel, cursor.fetchone()[0]]) elif cursor.rowcount > 100: irc.reply('More than 100 keys matched that query; ' 'please narrow your query.')