make unset/logininfo not reset back to 1 after login
[spider.git] / perl / DXUser.pm
index cbedad4114a561e5e16034ddfb587e7e8a826e36..e65dd9227ae37a814a78dd40ea34fae3e6091270 100644 (file)
@@ -527,10 +527,7 @@ sub wantann_talk
 
 sub wantlogininfo
 {
-       my $self = shift;
-       my $n = shift;
-       $self->{wantlogininfo} = $n if $n;
-       return exists $self->{wantlogininfo} ? $self->{wantlogininfo} : 0;
+       return _want('logininfo', @_);
 }
 
 sub is_node