Skip to content

Commit

Permalink
fixed bug in participants()
Browse files Browse the repository at this point in the history
  • Loading branch information
polettix committed Oct 1, 2012
1 parent 5a8d2d9 commit 5f5efbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Narsil/Match.pm
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,16 @@ sub _flagify {
sub participants {
my $self = shift;
my $p = $self->_participants();
@$p = [@_] if @_;
@$p = @_ if @_;
return @$p;
} ## end sub participants

sub set_participants {
my $self = shift;
@{$self->_participants()} = @_;
return $self;
}

sub add_participant {
my ($self, $userid) = @_;
push @{$self->_participants()}, $userid;
Expand Down

0 comments on commit 5f5efbd

Please sign in to comment.