summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games.pm
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-04-27 00:40:40 -0500
committerdoy <doy@tozt.net>2009-04-27 00:40:40 -0500
commitd03fe696ce25af4efd63d5a1d2888e5c3d7b12fe (patch)
treecdcc4cddfe7bcbe7eb7dd49304098e205edf9ee7 /lib/Bot/Games.pm
parentf14145ab982aee807b65ecbc1a6ea82b6657bb0e (diff)
downloadbot-games-d03fe696ce25af4efd63d5a1d2888e5c3d7b12fe.tar.gz
bot-games-d03fe696ce25af4efd63d5a1d2888e5c3d7b12fe.zip
make is_over work properly as a command
Diffstat (limited to 'lib/Bot/Games.pm')
-rw-r--r--lib/Bot/Games.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm
index 6bc5023..cd2d24f 100644
--- a/lib/Bot/Games.pm
+++ b/lib/Bot/Games.pm
@@ -85,6 +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);
}
return unless defined $action;