mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 19:52:34 +01:00
Plugins/Battleship.pm: better unicode fix
This commit is contained in:
parent
c84b837e97
commit
385ecd49b0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user