diff options
author | Julien Dessaux | 2015-01-01 16:42:50 +0100 |
---|---|---|
committer | Julien Dessaux | 2015-01-01 17:46:39 +0100 |
commit | d9b7b0de319a063064caac315ae163574160c0fd (patch) | |
tree | 92339123269441bfdd9a47077b71845271b50f99 | |
parent | Only kick registered nicks, and only reset the game if the kicked nick is a p... (diff) | |
download | avalon-arthur-d9b7b0de319a063064caac315ae163574160c0fd.tar.gz avalon-arthur-d9b7b0de319a063064caac315ae163574160c0fd.tar.bz2 avalon-arthur-d9b7b0de319a063064caac315ae163574160c0fd.zip |
Do not start a game with more than the maximum number of players
Diffstat (limited to '')
-rw-r--r-- | Avalon.pm | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -90,6 +90,7 @@ sub start_game { my $self = shift; my $av = $self->{avalon}; my @players = shuffle keys $av->{registered}; + @players = @players[0..9] if scalar @players > 10; $av->{players} = \@players; $self->say( channel => $av->{config}->{'game.channel'}, body => "GAMESTART " . join(' ', @players) ); $self->set_timeout(10); |