mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-10 20:12:35 +01:00
Plugin/Wordle: silence uninitialized warning
This commit is contained in:
parent
440a72c71e
commit
d8a67ae0c5
@ -171,6 +171,7 @@ sub guess_wordle($self, $channel, $guess) {
|
|||||||
for (my $i = 0; $i < @wordle; $i++) {
|
for (my $i = 0; $i < @wordle; $i++) {
|
||||||
$count{$wordle[$i]}++;
|
$count{$wordle[$i]}++;
|
||||||
$seen{$wordle[$i]} = 0;
|
$seen{$wordle[$i]} = 0;
|
||||||
|
$correct{$wordle[$i]} = 0 unless exists $correct{$wordle[$i]};
|
||||||
|
|
||||||
if ($guess[$i] eq $wordle[$i]) {
|
if ($guess[$i] eq $wordle[$i]) {
|
||||||
$correct{$guess[$i]}++;
|
$correct{$guess[$i]}++;
|
||||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4708,
|
BUILD_REVISION => 4709,
|
||||||
BUILD_DATE => "2024-03-07",
|
BUILD_DATE => "2024-03-07",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user