X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUser.pm;h=ddcbc954da3248e74be2fa276b9e3b3709a26eff;hb=214add54f06130d9bbfce9045a814f6599f30812;hp=cbedad4114a561e5e16034ddfb587e7e8a826e36;hpb=8f58735f5c9c090f2e5e00e05c7ad0834eccb741;p=spider.git diff --git a/perl/DXUser.pm b/perl/DXUser.pm index cbedad41..ddcbc954 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -528,9 +528,9 @@ sub wantann_talk sub wantlogininfo { my $self = shift; - my $n = shift; - $self->{wantlogininfo} = $n if $n; - return exists $self->{wantlogininfo} ? $self->{wantlogininfo} : 0; + my $val = shift; + $self->{wantlogininfo} = $val if defined $val; + return $self->{wantlogininfo}; } sub is_node