Skip to content

Commit

Permalink
Suggestion for reason_alter_*.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Nov 24, 2001
1 parent 5fb83e4 commit a30796a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions themes/slashcode/htdocs/users.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,7 @@ sub saveComm {

my($min, $max) = ($constants->{comment_minscore},
$constants->{comment_maxscore});
my $most_adj = $max-$min;
my @reasons = ();
@reasons = @{$constants->{reasons}}
if $constants->{reasons} and ref($constants->{reasons}) eq 'ARRAY';
Expand All @@ -1574,6 +1575,9 @@ sub saveComm {
# if $answer < $min;
# $answer = $constants->{comment_maxscore}
# if $answer > $max;
# Do you mean this? -Jamie
# $answer = -$most_adj if $answer < -$most_adj;
# $answer = $most_adj if $answer > $most_adj;
$users_comments_table->{"reason_alter_$_"} = ($answer == 0) ? '' : $answer;
}

Expand Down

0 comments on commit a30796a

Please sign in to comment.