From 643be4346677bb462813dce82d7c5bf119a1a686 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Sun, 11 Apr 2010 01:23:27 -0400 Subject: [PATCH] Fix factoids bug ,Factoids.showFactoidIfOnlyOneMatch feature is broken when used off-channel: https://sourceforge.net/tracker/?func=detail&aid=2965589&group_id=58965&atid=489447 --- 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 707e72023..2526eb730 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -661,7 +661,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, [results[0][0]]) + self.whatis(irc, msg, [channel, results[0][0]]) elif len(results) > 100: irc.reply('More than 100 keys matched that query; ' 'please narrow your query.')