From b2c45caa66898b6e76e549901058c16c3a0361d6 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 11 Apr 2010 10:36:55 -0400 Subject: [PATCH] Factoids: Pass channel to whatis when being called from search Thanks to Daniel Folkinshteyn for the fix. Closes: Sf#2965589 Signed-off-by: James Vega (cherry picked from commit 209facd242ebcf0fc9974f01b87cf47a8e25098f) --- 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 f86c937cd..8460e09ee 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, [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.')