]> ruin.nu Git - NDIRC.git/commitdiff
Allow fractional points
authorMichael Andreen <harv@ruin.nu>
Sat, 20 Sep 2008 09:21:38 +0000 (11:21 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 20 Sep 2008 09:21:38 +0000 (11:21 +0200)
Usermgm.pm

index 445a33a9eae1923895ff874507f3ab031a1acc96..76fd5ad7b08d5ebca9427bc20820b0a80dbb5ea2 100644 (file)
@@ -217,7 +217,7 @@ sub addPoints {
        my ($msg, $t) = @_;
 
        my ($nick, $points);
-       if(defined $msg && $msg =~ /^(\S+)(?: (-?\d+))?$/){
+       if(defined $msg && $msg =~ /^(\S+)(?: (-?(\d+)?(\.\d+)?))?$/){
                $nick = $1;
                $points = $2;
        }else{