From fce337e695c425f715e775f744e32d63b68a1655 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 21 Oct 2025 12:41:10 -0700 Subject: [PATCH] Plugin/Wordle: fix Unicode in `wordle info --json` --- lib/PBot/Plugin/Wordle.pm | 3 ++- lib/PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PBot/Plugin/Wordle.pm b/lib/PBot/Plugin/Wordle.pm index b1ba6f97..bbea50c8 100644 --- a/lib/PBot/Plugin/Wordle.pm +++ b/lib/PBot/Plugin/Wordle.pm @@ -283,7 +283,8 @@ sub wordle($self, $context) { $h->{gaveup_by} = $self->{games}->{$channel}->{$gameid}->{givenup_by}; } - return encode_json $h; + my $encoder = JSON::XS->new; + return $encoder->encode($h); } my $started = concise ago time - $self->{games}->{$channel}->{$gameid}->{start_time}; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 1b66728f..097fb87d 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 => 4914, + BUILD_REVISION => 4915, BUILD_DATE => "2025-10-21", };