3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

Plugins/Battleship.pm: better unicode fix

This commit is contained in:
Pragmatic Software 2020-01-21 21:10:43 -08:00
parent c84b837e97
commit 385ecd49b0

View File

@ -11,6 +11,7 @@ use feature 'switch';
no if $] >= 5.018, warnings => "experimental::smartmatch"; no if $] >= 5.018, warnings => "experimental::smartmatch";
use feature 'unicode_strings'; use feature 'unicode_strings';
use utf8;
use Carp (); use Carp ();
use Time::Duration qw/concise duration/; use Time::Duration qw/concise duration/;
@ -46,8 +47,6 @@ sub initialize {
$self->{player_two_vert} = 'I'; $self->{player_two_vert} = 'I';
$self->{player_two_horiz} = '='; $self->{player_two_horiz} = '=';
utf8::decode $self->{player_one_horiz};
$self->create_states; $self->create_states;
} }