have !markov learn echo the text it learned, in case someone wants to chain it with other commands for some reason

This commit is contained in:
Brian S. Stephan 2011-01-24 16:51:05 -06:00
parent a0a5bdec1c
commit 2f3feb093d
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ class Markov(Module):
line = match.group(1)
self._learn_line(line)
# return what was learned, for weird chaining purposes
return line
def markov_reply(self, connection, event, nick, userhost, what, admin_unlocked):
"""Generate a reply to one line, without learning it."""