Markov.py: tweaking the shut up check, this has been pretty good for a while

This commit is contained in:
Brian S. Stephan 2011-09-20 01:20:27 -05:00
parent 70e1ee017f
commit 50fbbbfedd
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class Markov(Module):
if rdelta.years == 0 and rdelta.months == 0 and rdelta.days == 0 and rdelta.hours == 0 and rdelta.minutes == 0 and rdelta.seconds <= 29:
last_30_sec_lines.append((nick,then))
if len(last_30_sec_lines) >= 15:
if len(last_30_sec_lines) >= 8:
lines_i_said = len(filter(lambda (a,b): a == '.self.said.', last_30_sec_lines))
if lines_i_said >= 8:
self.shut_up = True