Skip to content

Commit

Permalink
It's nice to have the state given to you if you attempt to start a ne…
Browse files Browse the repository at this point in the history
…w game and one is in progress.
  • Loading branch information
jamesronan committed Aug 5, 2011
1 parent 71bf63b commit 95a94c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Bot/BasicBot/Pluggable/Module/Hangman.pm
Expand Up @@ -215,7 +215,8 @@ sub _begin_game {

my $games = $bot->store->get( $namespace, 'games' ) // {};
if ( exists $games->{$game_name} ) {
return "A game is already in progress!";
return "A game is already in progress!"
. $self->_game_state($game_name);
}

$game_data = {
Expand Down

0 comments on commit 95a94c9

Please sign in to comment.