diff options
Diffstat (limited to 'Plugin')
-rw-r--r-- | Plugin/Markov.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/Markov.pm b/Plugin/Markov.pm index a8d5f8f..1733372 100644 --- a/Plugin/Markov.pm +++ b/Plugin/Markov.pm @@ -84,6 +84,7 @@ sub do_markov $word = some(@{$markov_data{$word}}); } until(not $word or $word eq "" or $i == 1000); + return if scalar(split / /, $message) <= 2; return $message; } @@ -93,7 +94,6 @@ sub markov_cmd my $seed = $arguments[0]; return do_markov($seed); - return "foo"; } sub on_message |