add the ability to limit no of connections
[spider.git] / perl / Route / User.pm
index 3dfb18cec3069c0ddc99e2d47e116023cad10c3f..e25c199cfdd40e6e7a8dc5ce53b23e916ab070b6 100644 (file)
@@ -3,13 +3,14 @@
 #
 # Copyright (c) 2001 Dirk Koopman G1TLH
 #
-# $Id$
+#
 # 
 
 package Route::User;
 
 use DXDebug;
 use Route;
+use DXUtil;
 
 use strict;
 
@@ -47,7 +48,7 @@ sub new
        
        my $self = $pkg->SUPER::new($call);
        $self->{parent} = [ $ncall ];
-       $self->{flags} = $flags;
+       $self->{flags} = $flags || Route::here(1);
        $list{$call} = $self;
 
        return $self;
@@ -91,6 +92,8 @@ sub delparent
     return $self->_dellist('parent', @_);
 }
 
+
+
 #
 # generic AUTOLOAD for accessors
 #