From ebd3d2259770772b4f628120e1a581bdc6927546 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Jun 2009 23:37:29 -0500 Subject: clean up undef warning --- lib/Bot/Games/Game/Chess.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm index abd94fd..a899a4c 100644 --- a/lib/Bot/Games/Game/Chess.pm +++ b/lib/Bot/Games/Game/Chess.pm @@ -33,7 +33,7 @@ augment turn => sub { unless $self->has_player($player); my $player_index = $self->game->to_move ? 0 : 1; return "It's not your turn" - if $player ne $self->players->[$player_index]; + if $player ne ($self->players->[$player_index] || ''); my $status = eval { $self->game->go_move($move) }; return $@ if $@; -- cgit v1.2.3