QuoteGrabs: fix SyntaxWarning (#1391)

SyntaxWarning: "is" with a literal. Did you mean "=="?

Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
This commit is contained in:
Mattia Rizzolo 2019-11-27 16:59:11 +01:00 committed by James Lu
parent a1ee580d08
commit 981a3b245a
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class SqliteQuoteGrabsDB(object):
if len(results) == 0:
raise dbi.NoRecordError
(id, by, quote, hostmask, at, grabber) = results[0]
if quoteonly is 0:
if quoteonly == 0:
return QuoteGrabsRecord(id, by=by, text=quote, hostmask=hostmask,
at=int(at), grabber=grabber)
else: