Jeopardy: don't generate hints if numHints = 0

This commit is contained in:
Gordon Shumway 2020-02-18 10:26:29 -05:00 committed by GitHub
parent 7f00481994
commit 8d41f90bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ class Jeopardy(callbacks.Plugin):
schedule.removeEvent('event_%s' % self.channel)
except:
pass
if self.hints <= self.numHints and self.hints > 0:
if self.hints <= self.numHints and self.hints > 0 and self.numHints > 0:
ans = self.a[0]
self.show.setdefault(self.id, None)
self.revealed.setdefault(self.id, None)