3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-22 18:52:40 +01:00

Plugin/Wordle: silence uninitialized warning

This commit is contained in:
Pragmatic Software 2024-03-07 09:09:59 -08:00
parent 440a72c71e
commit d8a67ae0c5
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 2 additions and 1 deletions

View File

@ -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]}++;

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 => 4708,
BUILD_REVISION => 4709,
BUILD_DATE => "2024-03-07",
};