Fix a bug for when showFactoidIfOnlyOneMatch is set

This commit is contained in:
James Vega 2004-12-02 14:17:50 +00:00
parent f95f5a09ac
commit 80fe67519b
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ class Factoids(callbacks.Privmsg):
try:
factoids = self.db.select(channel, values, predicates, L)
if isinstance(factoids, basestring):
self.whatis(irc, msg, factoids)
self.whatis(irc, msg, [factoids])
elif factoids is None:
irc.reply('More than 100 keys matched that query; '
'please narrow your query.')