- my $self = shift;
-
- my @f = split /\^/, $_[2];
- my $inv = Verify->new($f[5]);
- unless ($inv->verify($main::me->user->passphrase, $f[6], $main::mycall, $self->call)) {
- $self->sendnow('D','Sorry...');
- $self->disconnect;
- }
- if ($self->{outbound}) {
- $self->send($self->gen1);
- }
- if ($self->{sort} ne 'S' && $f[2] eq 'DXSpider') {
- $self->{user}->{sort} = $self->{sort} = 'S';
- $self->{user}->{priv} = $self->{priv} = 1 unless $self->{priv};
- }
- $self->{version} = $f[3];
- $self->{build} = $f[4];
- $self->state('normal');
- $self->{lastping} = 0;
-}
-
-sub gen1
-{
- my $self = shift;
- my $inp = Verify->new;
- return frame(1, 1, "DXSpider", $main::version + 53, $main::build, $inp->challenge, $inp->response($self->user->passphrase, $self->call, $main::mycall));
+ my ($self, $usercall, $to) = @_;
+ my $ref = $DXChannel::pings{$to} || [];
+ my $r = {};
+ $r->{call} = $usercall;
+ $r->{t} = [ gettimeofday ];
+ DXChannel::route(undef, $to, $self->QXP::gen($to, 1, $usercall, @{$r->{t}}));
+ push @$ref, $r;
+ $DXCHannel::pings{$to} = $ref;