def firstmen(self):
return nicetime(time.time()-self.first)
def urltype(self):
- z=max(len(urlcomplaints), self.count-1)
+ z=min(len(urlcomplaints)-1, self.count-1)
return urlcomplaints[z]
urlre = re.compile("(https?://[^ ]+)( |$)")
(T.urltype(),T.firstmen(),T.nick)
if (public):
complaint=complaint+". Furthermore it defeats the point of this command to use it other than via /msg."
+ T.count+=1
bot.automsg(False,nick,complaint)
T.lastasked=time.time()
else:
(T.urltype(),T.firstmen(),T.nick)
conn.action(bot.channel, message)
T.lastseen=time.time()
+ T.count+=1
else:
urldb[urlstring]=UrlLog(urlstring,nick)