mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed crossword bug committed by Xylo.
This commit is contained in:
parent
41ab05862f
commit
e187479e19
@ -516,7 +516,10 @@ class FunDB(callbacks.Privmsg, plugins.Configurable):
|
||||
WHERE word LIKE %s
|
||||
ORDER BY word""", word)
|
||||
words = [t[0] for t in cursor.fetchall()]
|
||||
irc.reply(msg, utils.commaAndify(words))
|
||||
if words:
|
||||
irc.reply(msg, utils.commaAndify(words))
|
||||
else:
|
||||
irc.reply(msg, 'No matching words were found.')
|
||||
|
||||
def anagram(self, irc, msg, args):
|
||||
"""<word>
|
||||
|
Loading…
Reference in New Issue
Block a user