Another slight randomgrab bugfix

This commit is contained in:
James Vega 2004-12-06 20:30:24 +00:00
parent 0a1907318a
commit 91c6cb51e5

View File

@ -224,7 +224,7 @@ class QuoteGrabs(callbacks.Privmsg):
if self.registryValue('randomGrabber', channel):
if len(payload) > length and len(payload.split()) > words:
try:
last = self.db.select(channel, msg.nick)
last = int(self.db.select(channel, msg.nick))
except dbi.NoRecordError:
self._grab(irc, msg, irc.prefix)
self._sendGrabMsg(irc, msg)