From df50130389117f37198cbc7819b8123c54b07c82 Mon Sep 17 00:00:00 2001 From: skkiesel Date: Thu, 25 May 2017 15:22:58 -0400 Subject: [PATCH] limit babble lengths... loops are not for kids --- plugins/babbler/babbler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/babbler/babbler.go b/plugins/babbler/babbler.go index 0c54b45..357796a 100644 --- a/plugins/babbler/babbler.go +++ b/plugins/babbler/babbler.go @@ -546,6 +546,10 @@ func (p *BabblerPlugin) babbleSeed(babblerName string, seed []string) (string, e break } words = append(words, curWord.Word) + + if len(words) >= 250 { + break + } } return strings.TrimSpace(strings.Join(words, " ")), nil