6. make set/isolate and acc/route mutually exclusive (and issue appropriate
[spider.git] / perl / Route / User.pm
index bc28dbef511053f809ce75171775d88a8e20feb9..bcd98a00ed3e591c86a995ad3f8c8be1abebd794 100644 (file)
@@ -39,6 +39,7 @@ sub count
 
 sub max
 {
+       count();
        return $max;
 }
 
@@ -58,14 +59,21 @@ sub new
        return $self;
 }
 
+sub get_all
+{
+       return values %list;
+}
+
 sub del
 {
        my $self = shift;
        my $pref = shift;
-       my $ref = $self->delparent($pref->{call});
-       return () if @$ref;
-       my @out = delete $list{$self->{call}};
-       return @out;
+       $self->delparent($pref);
+       unless (@{$self->{parent}}) {
+               delete $list{$self->{call}};
+               return $self;
+       }
+       return undef;
 }
 
 sub get