summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Avalon.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Avalon.pm b/Avalon.pm
index 0d60734..a0c92d0 100644
--- a/Avalon.pm
+++ b/Avalon.pm
@@ -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);