+07Nov02=======================================================================
+1. allow three digit longitudes
29Oct02=======================================================================
1. make sh/log et al a bit more efficient.
2. fix dupe message in dx.
# turn a lat long string into floating point lat and long
sub stoll
{
- my ($latd, $latm, $latl, $longd, $longm, $longl) = $_[0] =~ /(\d{1,2})\s+(\d{1,2})\s*([NnSs])\s+(\d{1,2})\s+(\d{1,2})\s*([EeWw])/;
+ my ($latd, $latm, $latl, $longd, $longm, $longl) = $_[0] =~ /(\d{1,2})\s+(\d{1,2})\s*([NnSs])\s+(\d{1,3})\s+(\d{1,2})\s*([EeWw])/;
$longd += ($longm/60);
$longd = 0-$longd if (uc $longl) eq 'W';
$self->DXProt::disconnect(@_);
}
-sub sendallnodes
-{
-}
-
-sub sendallusers
-{
-
-}
-
my $msgid = 1;
sub frame
{
my $self = shift;
- my @f = split /\^/, $_[2];
- my $inv = Verify->new($f[8]);
- unless ($inv->verify($f[9], $main::me->user->passphrase, $main::mycall, $self->call)) {
+ my @f = split /\^/, $_[3];
+ my $inv = Verify->new($f[7]);
+ unless ($inv->verify($f[8], $main::me->user->passphrase, $main::mycall, $self->call)) {
$self->sendnow('D','Sorry...');
$self->disconnect;
}
if ($self->{outbound}) {
$self->send($self->genI);
}
- if ($self->{sort} ne 'S' && $f[5] eq 'DXSpider') {
+ if ($self->{sort} ne 'S' && $f[4] eq 'DXSpider') {
$self->{user}->{sort} = $self->{sort} = 'S';
$self->{user}->{priv} = $self->{priv} = 1 unless $self->{priv};
}
- $self->{version} = $f[6];
- $self->{build} = $f[7];
+ $self->{version} = $f[5];
+ $self->{build} = $f[6];
$self->state('init1');
$self->{lastping} = 0;
}
{
my $self = shift;
my $inp = Verify->new;
- return frame('I', $self->call, 1, "DXSpider", ($main::version + 53) * 100, $main::build, $inp->challenge, $inp->response($self->user->passphrase, $self->call, $main::mycall));
+ return frame('I', $self->call, "DXSpider", ($main::version + 53) * 100, $main::build, $inp->challenge, $inp->response($self->user->passphrase, $self->call, $main::mycall));
}
-sub handleB
+sub handleR
{
}
-sub genB
+sub genR
{
}