mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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
|
WHERE word LIKE %s
|
||||||
ORDER BY word""", word)
|
ORDER BY word""", word)
|
||||||
words = [t[0] for t in cursor.fetchall()]
|
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):
|
def anagram(self, irc, msg, args):
|
||||||
"""<word>
|
"""<word>
|
||||||
|
Loading…
Reference in New Issue
Block a user