summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Bot/Games/Game/Chess.pm6
-rw-r--r--lib/Bot/Games/Game/Ghost.pm2
2 files changed, 4 insertions, 4 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 {
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 9dba5d2..7d8f4a0 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -69,7 +69,7 @@ sub allow_new_player {
command challenge => sub {
my $self = shift;
my ($word, $args) = @_;
- my $player = $args->{player};
+ my $player = $args->{sender};
$self->maybe_add_player($player);
return "It's " . $self->current_player . "'s turn!"
if $player ne $self->current_player;