QuoteGrabs: QuoteGrabsRecord at arg needs to be an int.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit cbf68e53e3)
This commit is contained in:
James Vega 2009-07-18 20:27:45 -04:00
parent d43d083f44
commit 885d60a132

View File

@ -105,7 +105,7 @@ class SqliteQuoteGrabsDB(object):
raise dbi.NoRecordError raise dbi.NoRecordError
(id, by, quote, hostmask, at, grabber) = cursor.fetchone() (id, by, quote, hostmask, at, grabber) = cursor.fetchone()
return QuoteGrabsRecord(id, by=by, text=quote, hostmask=hostmask, return QuoteGrabsRecord(id, by=by, text=quote, hostmask=hostmask,
at=at, grabber=grabber) at=int(at), grabber=grabber)
def random(self, channel, nick): def random(self, channel, nick):
db = self._getDb(channel) db = self._getDb(channel)