diff --git a/lib/PBot/Plugin/Wordle.pm b/lib/PBot/Plugin/Wordle.pm index 499c7941..96ac9cc7 100644 --- a/lib/PBot/Plugin/Wordle.pm +++ b/lib/PBot/Plugin/Wordle.pm @@ -171,6 +171,7 @@ sub guess_wordle($self, $channel, $guess) { for (my $i = 0; $i < @wordle; $i++) { $count{$wordle[$i]}++; $seen{$wordle[$i]} = 0; + $correct{$wordle[$i]} = 0 unless exists $correct{$wordle[$i]}; if ($guess[$i] eq $wordle[$i]) { $correct{$guess[$i]}++; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 6c8733a4..d193bb75 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4708, + BUILD_REVISION => 4709, BUILD_DATE => "2024-03-07", };