Markov: refer to the actual target from a chatter target when shutting up
This commit is contained in:
parent
9abdc98487
commit
a51f0cb54c
|
@ -358,7 +358,7 @@ class Markov(Module):
|
||||||
self.shut_up = True
|
self.shut_up = True
|
||||||
targets = self._get_chatter_targets()
|
targets = self._get_chatter_targets()
|
||||||
for t in targets:
|
for t in targets:
|
||||||
self.sendmsg(self.connection, t, 'shutting up for 30 seconds due to last 30 seconds of activity')
|
self.sendmsg(self.connection, t['target'], 'shutting up for 30 seconds due to last 30 seconds of activity')
|
||||||
|
|
||||||
def _learn_line(self, line, target):
|
def _learn_line(self, line, target):
|
||||||
"""Create Markov chains from the provided line."""
|
"""Create Markov chains from the provided line."""
|
||||||
|
|
Loading…
Reference in New Issue