summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-11-02 18:49:55 -0600
committerJesse Luehrs <doy@tozt.net>2009-11-02 18:49:55 -0600
commite346fd1fd41d184393b0f14cf56eaf30821501bd (patch)
tree80323aa5bcab043bfe901eae50a29a22ad6a4d69
parent79b1852f03e9c00baa50ae322ed611291ac0dc53 (diff)
downloadbot-games-e346fd1fd41d184393b0f14cf56eaf30821501bd.tar.gz
bot-games-e346fd1fd41d184393b0f14cf56eaf30821501bd.zip
this arg was renamed to sender in im-e-p-c
-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;