summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Chess.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Chess.pm')
-rw-r--r--lib/Bot/Games/Game/Chess.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm
index d77f820..91c1716 100644
--- a/lib/Bot/Games/Game/Chess.pm
+++ b/lib/Bot/Games/Game/Chess.pm
@@ -59,9 +59,9 @@ command resign => sub {
my $self = shift;
my ($dummy, $args) = @_;
$self->is_active(0);
- return "$args->{player} resigns: "
+ return "$args->{sender} resigns: "
. App::Nopaste::nopaste(text => $self->game->dump_pos,
- nick => $args->{player})
+ nick => $args->{sender})
};
command state => sub {
@@ -77,7 +77,7 @@ command state => sub {
}
return "$player to play: "
. App::Nopaste::nopaste(text => $self->game->dump_pos,
- nick => $args->{player});
+ nick => $args->{sender});
};
sub format_turn {