mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Fixed bug in looking up specific factoids.
This commit is contained in:
parent
206e14fcf4
commit
b719ab6c24
@ -196,7 +196,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||
irc.reply(msg,'%r could be %s' % (key, ', or '.join(factoids)))
|
||||
else:
|
||||
try:
|
||||
irc.reply(msg, cursor.fetchall()[number-1])
|
||||
irc.reply(msg, cursor.fetchall()[number-1][0])
|
||||
except IndexError:
|
||||
irc.error(msg, 'That\'s not a valid number for this key.')
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user