also stop markov chain if we chose None
This commit is contained in:
parent
8e4c0f4963
commit
432fd39441
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ class Module(ModuleManager.BaseModule):
|
|||
break
|
||||
|
||||
third_word = self._choose(third_words)
|
||||
if third_word == None:
|
||||
break
|
||||
words.append(third_word)
|
||||
|
||||
return " ".join(words)
|
||||
|
|
Loading…
Reference in a new issue