Permalink
Browse files

Oops, get tokens before saving.

  • Loading branch information...
1 parent f382e60 commit 3626f94207f354636032dfbdb00a7a675df8a068 @jamiemccarthy jamiemccarthy committed Sep 17, 2002
Showing with 2 additions and 1 deletion.
  1. +2 −1 themes/slashcode/htdocs/comments.pl
@@ -1450,7 +1450,8 @@ sub moderateCid {
# appropriate tables directly, to be atomic and all
# that good stuff. Faster too. XXX - Jamie 2002/09/13
if ($comment->{uid} != $constants->{anonymous_coward_uid}) {
- my $cuser = $slashdb->getUser($comment->{uid}, [ qw| downmods upmods karma | ]);
+ my $cuser = $slashdb->getUser($comment->{uid},
+ [ qw| downmods upmods karma tokens | ]);
my $newkarma = $cuser->{karma} + $val;
$cuser->{tokens}-- if $val < 0;
$cuser->{downmods}++ if $val < 0;

0 comments on commit 3626f94

Please sign in to comment.