diff options
author | David Phillips <david@sighup.nz> | 2019-10-25 21:42:46 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-10-25 21:42:46 +1300 |
commit | bc41a099b3f01c8ad646d2725ea27d99fa37eb87 (patch) | |
tree | 1c779ace12698399233cad53d018f1df59b862a4 | |
parent | a5ed1088cd4e28b2bc9977801b4c087cc645b585 (diff) | |
download | idalius-bc41a099b3f01c8ad646d2725ea27d99fa37eb87.tar.xz |
Markov: Don't say short markov messages
-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 |