diff --git a/modules/Markov.py b/modules/Markov.py index 03a6a87..675dad0 100644 --- a/modules/Markov.py +++ b/modules/Markov.py @@ -433,7 +433,7 @@ class Markov(Module): # if the first word is "foo:", start with the second addressing_suffixes = [':', ','] - if gen_words[0][-1] in addressing_suffixes: + if new_chain_words[0][-1] in addressing_suffixes: gen_words += new_chain_words[1:] self.log.debug("appending following anti-address " \ "new_chain_words: {0:s}".format(new_chain_words[1:]))