X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FUser.pm;h=de24f906ef7155059c112743d8b5024e75a0b98b;hb=ca46fb0822f3998466ffbe4c669271ee2af86859;hp=551b32e61dd512dc9fc445068a29b8ee2b45ee44;hpb=776d7bb9277c9d24708e297f240395b51b0aaa93;p=spider.git diff --git a/perl/Route/User.pm b/perl/Route/User.pm index 551b32e6..de24f906 100644 --- a/perl/Route/User.pm +++ b/perl/Route/User.pm @@ -3,7 +3,7 @@ # # Copyright (c) 2001 Dirk Koopman G1TLH # -# $Id$ +# # package Route::User; @@ -19,6 +19,7 @@ use vars qw(%list %valid @ISA $max $filterdef); %valid = ( parent => '0,Parent Calls,parray', + ip => '0,IP Address', ); $filterdef = $Route::filterdef; @@ -44,11 +45,14 @@ sub new my $call = uc shift; my $ncall = uc shift; my $flags = shift; + my $ip = shift; + confess "already have $call in $pkg" if $list{$call}; my $self = $pkg->SUPER::new($call); $self->{parent} = [ $ncall ]; $self->{flags} = $flags || Route::here(1); + $self->{ip} = $ip if defined $ip; $list{$call} = $self; return $self; @@ -92,6 +96,8 @@ sub delparent return $self->_dellist('parent', @_); } + + # # generic AUTOLOAD for accessors #