Jeopardy: minor cleanup, fixes.
This commit is contained in:
parent
d18f906b2f
commit
63896314ac
|
@ -391,8 +391,8 @@ class Jeopardy(callbacks.Plugin):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
correct = False
|
correct = False
|
||||||
for ans in self.a:
|
for ans in self.a:
|
||||||
ans = " ".join(ans.strip()).lower()
|
ans = " ".join(ans.split()).strip().lower()
|
||||||
guess = " ".join(msg.args[1]).strip().lower()
|
guess = " ".join(msg.args[1].split()).strip().lower()
|
||||||
if guess == ans:
|
if guess == ans:
|
||||||
correct = True
|
correct = True
|
||||||
elif not correct and len(ans) > 2:
|
elif not correct and len(ans) > 2:
|
||||||
|
|
Loading…
Reference in New Issue