diff options
-rw-r--r-- | lib/Bot/Games.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Bot/Games.pm b/lib/Bot/Games.pm index 5e84fd4..8dfe257 100644 --- a/lib/Bot/Games.pm +++ b/lib/Bot/Games.pm @@ -82,7 +82,11 @@ sub said { } } else { - $say->($game->turn($args->{who}, $action)); + # XXX: need better handling for "0", but B::BB doesn't currently + # handle that properly either, so + # also, this should probably be factored into $say, i think? + my $turn = $game->turn($args->{who}, $action); + $say->($turn) if $turn; } if (my $end_msg = $game->is_over) { |