From e346fd1fd41d184393b0f14cf56eaf30821501bd Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 2 Nov 2009 18:49:55 -0600 Subject: this arg was renamed to sender in im-e-p-c --- lib/Bot/Games/Game/Chess.pm | 6 +++--- lib/Bot/Games/Game/Ghost.pm | 2 +- 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; -- cgit v1.2.3-54-g00ecf