]> ruin.nu Git - NDIRC.git/commitdiff
Bugfix, add 1 point even if an extra space is added
authorMichael Andreen <harv@ruin.nu>
Wed, 12 Nov 2008 20:36:25 +0000 (21:36 +0100)
committerMichael Andreen <harv@ruin.nu>
Wed, 12 Nov 2008 20:36:25 +0000 (21:36 +0100)
Usermgm.pm

index 2de54a224ccea222b136c422d6d9c0feae909049..1f8545b689c3cf8a4329ba8457a76fa35dae99ba 100644 (file)
@@ -275,7 +275,7 @@ sub addPoints {
                || ($t eq "a" && bc())
                || ($t eq "h" && officer())
                || ($t eq "s" && scanner())){
-               $points = 1 unless (defined $points);
+               $points = 1 unless $points;
                if ($points*$points > 400){
                        $ND::server->command("msg $ND::target Values between -20 and 20 please");
                        return;