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

View File

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