also stop markov chain if we chose None

This commit is contained in:
jesopo 2019-10-04 11:57:11 +01:00
parent 8e4c0f4963
commit 432fd39441

View file

@ -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)