]> dxcluster.org Git - spider.git/commitdiff
get set/nobeeps to work?
authordjk <djk>
Sun, 21 Nov 1999 17:56:24 +0000 (17:56 +0000)
committerdjk <djk>
Sun, 21 Nov 1999 17:56:24 +0000 (17:56 +0000)
perl/DXUser.pm

index dff27088008038b2a53a5dc877782e485d147a7f..0e78af482278a6fbcff41bc8eb2792fd24255327 100644 (file)
@@ -326,9 +326,10 @@ sub _want
 {
        my $n = shift;
        my $self = shift;
+       my $val = shift;
        my $s = "want$n";
-       return $self->{$n} = shift if @_;
-       return defined $self->{$n} ? $self->{$n} : 1;
+       $self->{$n} = $val if $val;
+       return exists $self->{$n} ? $self->{$n} : 1;
 }
 
 sub wantbeep