3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 11:59:43 +01:00

Update WordMorph

- Ensure length of each step is correct
- Add WordMorph to plugin_autoload
This commit is contained in:
Pragmatic Software 2022-08-26 12:47:44 -07:00
parent c071bf7604
commit bc02854d15
3 changed files with 3 additions and 2 deletions

View File

@ -20,4 +20,5 @@ TypoSub
UrlTitles
Weather
Wolfram
WordMorph
Wttr

View File

@ -212,7 +212,7 @@ sub wordmorph {
return "I do not know this word `$word`.";
}
if (distance($word, $last_word) != 1) {
if (distance($word, $last_word) != 1 || length($word) != length($last_word)) {
return "Wrong. `$word` does not follow from `$last_word`.";
}

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4576,
BUILD_REVISION => 4577,
BUILD_DATE => "2022-08-26",
};