diff options
author | doy <doy@tozt.net> | 2009-04-27 00:43:17 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-04-27 00:43:17 -0500 |
commit | eb5197e67e600ceb1e30df3d741c70c5024082db (patch) | |
tree | e13a9b85087300c3f4b8a8e8ec39f86ce60838a1 /lib/Bot/Games.pm | |
parent | d03fe696ce25af4efd63d5a1d2888e5c3d7b12fe (diff) | |
download | bot-games-eb5197e67e600ceb1e30df3d741c70c5024082db.tar.gz bot-games-eb5197e67e600ceb1e30df3d741c70c5024082db.zip |
invert the sense of the is_over attribute (make it is_active)
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r-- | lib/Bot/Games.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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}; } |