X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Commands%2FUsermgm.pm;h=00ebeb0d77ff4064b871a9b13d52e56489c32b18;hp=88a222ebfa9e87ff9243e63ba62ca1359cab90ba;hb=1ab264ec25caff50e2ad8e55947b5b09e8a08e90;hpb=d9efbedb1f873e584e6ef43475ac896b2a49a050 diff --git a/Commands/Usermgm.pm b/Commands/Usermgm.pm index 88a222e..00ebeb0 100644 --- a/Commands/Usermgm.pm +++ b/Commands/Usermgm.pm @@ -423,10 +423,10 @@ my $points = class extends NDIRC::Command { method execute ($c,$msg) { my ($nick,$points) = $msg =~ /^(\S+)(?: (-?(:?\d+|\d*\.\d+)))?$/ or die 'ARGS'; - return unless $self->check($c,$nick,$points); - $points //= 1; + return unless $self->check($c,$nick,$points); + my $dbh = $c->model; if ($points*$points > 400){