aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-10-25 21:42:46 +1300
committerDavid Phillips <david@sighup.nz>2019-10-25 21:42:46 +1300
commitbc41a099b3f01c8ad646d2725ea27d99fa37eb87 (patch)
tree1c779ace12698399233cad53d018f1df59b862a4
parenta5ed1088cd4e28b2bc9977801b4c087cc645b585 (diff)
downloadidalius-bc41a099b3f01c8ad646d2725ea27d99fa37eb87.tar.xz
Markov: Don't say short markov messages
-rw-r--r--Plugin/Markov.pm2
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