From eb5197e67e600ceb1e30df3d741c70c5024082db Mon Sep 17 00:00:00 2001 From: doy Date: Mon, 27 Apr 2009 00:43:17 -0500 Subject: invert the sense of the is_over attribute (make it is_active) --- lib/Bot/Games.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bot/Games.pm') diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm index cd2d24f..25d6ab6 100644 --- a/lib/Bot/Games.pm +++ b/lib/Bot/Games.pm @@ -85,7 +85,7 @@ sub said { && (!defined($action) || $action !~ /^-/)) { $self->$say($game->init($args->{who})) if $game->can('init'); $self->done_init->{$game_name} = 1; - $self->active_games->{$game_name}->is_over(0); + $self->active_games->{$game_name}->is_active(1); } return unless defined $action; @@ -117,7 +117,7 @@ sub said { $self->$say($turn) if $turn; } - if ($game->is_over) { + if (!$game->is_active) { delete $self->active_games->{$game_name}; delete $self->done_init->{$game_name}; } -- cgit v1.2.3-54-g00ecf