mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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)))
|
irc.reply(msg,'%r could be %s' % (key, ', or '.join(factoids)))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
irc.reply(msg, cursor.fetchall()[number-1])
|
irc.reply(msg, cursor.fetchall()[number-1][0])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
irc.error(msg, 'That\'s not a valid number for this key.')
|
irc.error(msg, 'That\'s not a valid number for this key.')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user