X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=c2358c3dd2366f56e1d7018c23fde7d474bb288d;hb=654e240acb579ce6d726076a8a2c5ea4b9658f6e;hp=f5fc6eb26c4f792b6ff50acb08051ef2aa3df652;hpb=1935ba236a7ef4999bceb00b6faf28038f3b052e;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index f5fc6eb2..c2358c3d 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -360,6 +360,11 @@ sub is_rbn return $_[0]->{sort} eq 'N'; } +sub is_dslink +{ + return $_[0]->{sort} eq 'L'; +} + # for perl 5.004's benefit sub sort { @@ -765,6 +770,20 @@ sub error_handler } +sub isregistered +{ + my $self = shift; + + # the sysop is registered! + return 1 if $self->{call} eq $main::myalias || $self->{call} eq $main::mycall; + + if ($main::reqreg) { + return $self->{registered}; + } else { + return 1; + } +} + #no strict; sub AUTOLOAD {