Markov: trivial change to allow for more advanced randomness later

This commit is contained in:
Brian S. Stephan 2011-06-22 19:00:01 -05:00
parent 9745cfc9be
commit 678350fe5d
1 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,8 @@ class Markov(Module):
targets = self._get_chatter_targets()
for t in targets:
if random.randint(1, t['chance']) == 1:
a = random.randint(1, t['chance'])
if a == 1:
self.sendmsg(self.connection, t['target'], self._generate_line(t['target']))
def _do_shut_up_checks(self):