Fix the previous Factoids fix.

channel needs to be part of the args list.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2010-04-11 11:04:45 -04:00
parent 209facd242
commit fe07ea1146

View File

@ -421,7 +421,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.')