X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUser.pm;h=160877aef11b5658ba9c3ad1e0988d3b016357a0;hb=f5028d38602385a6614c6234fa4165ee4f9e159c;hp=cbedad4114a561e5e16034ddfb587e7e8a826e36;hpb=8f58735f5c9c090f2e5e00e05c7ad0834eccb741;p=spider.git diff --git a/perl/DXUser.pm b/perl/DXUser.pm index cbedad41..160877ae 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -74,6 +74,7 @@ $lasttime = 0; wantann_talk => '0,Talklike Anns,yesno', lastoper => '9,Last for/oper,cldatetime', nothere => '0,Not Here Text', + registered => '9,Registered?,yesno', ); no strict; @@ -528,9 +529,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