Small fix for when we generate a markov chain with initial words.

This commit is contained in:
James Vega 2004-10-08 21:40:23 +00:00
parent f96e38f480
commit 28185185dd

View File

@ -314,7 +314,7 @@ class Markov(callbacks.Privmsg):
return return
words.append(follower) words.append(follower)
if givenArgs: if givenArgs:
irc.reply(' '.join(words)) irc.reply(' '.join(words[:-1]))
else: else:
irc.reply(' '.join(resp)) irc.reply(' '.join(resp))
self.q.enqueue(markov) self.q.enqueue(markov)