got investigate and auto believe essentially working
[spider.git] / perl / DXUser.pm
index 22cf0df25cb764175bf1bf32ee95076220a317a4..123dce61212b63b35017a834c2b04d426277ed6b 100644 (file)
@@ -93,6 +93,7 @@ $v3 = 0;
                  version => '1,Version',
                  build => '1,Build',
                  believe => '1,Believable nodes,parray',
+                 lastping => '1,Last Ping at,atime',
                 );
 
 #no strict;
@@ -784,7 +785,7 @@ sub set_believe
        my $self = shift;
        my $call = uc shift;
        $self->{believe} ||= [];
-       push @{$self->{believe}}, $call;
+       push @{$self->{believe}}, $call unless grep $_ eq $call, @{$self->{believe}};
 }
 
 sub unset_believe