projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix grepdbg help
[spider.git]
/
perl
/
RBN.pm
diff --git
a/perl/RBN.pm
b/perl/RBN.pm
index 0b3dfe5a937dc245c9b67958476212a9610d7664..ec9f39467942ef2014557938a393f44482068164 100644
(file)
--- a/
perl/RBN.pm
+++ b/
perl/RBN.pm
@@
-252,7
+252,12
@@
sub normal
}
# remove all extraneous crap from the origin - just leave the base callsign
}
# remove all extraneous crap from the origin - just leave the base callsign
- $origin = basecall($origin);
+ my $norigin = basecall($origin);
+ unless ($norigin) {
+ dbg("RBN: ERROR '$origin' is an invalid callsign, dumped");
+ return;
+ }
+ $origin = $norigin;
# is this callsign in badspotter list?
if ($DXProt::badspotter->in($origin) || $DXProt::badnode->in($origin)) {
# is this callsign in badspotter list?
if ($DXProt::badspotter->in($origin) || $DXProt::badnode->in($origin)) {
@@
-261,7
+266,7
@@
sub normal
}
# is the qrg valid
}
# is the qrg valid
- unless ($qrg =~ /^\d+\.\d{1,
2
}$/) {
+ unless ($qrg =~ /^\d+\.\d{1,
3
}$/) {
dbg("RBN: ERROR qrg $qrg from $origin invalid, dumped");
return;
}
dbg("RBN: ERROR qrg $qrg from $origin invalid, dumped");
return;
}
@@
-535,8
+540,9
@@
sub dx_spot
unless ($user->qra && is_qra($user->qra)) {
$user->qra($qra);
dbg("RBN: update qra on $saver->[SCall] to $qra");
unless ($user->qra && is_qra($user->qra)) {
$user->qra($qra);
dbg("RBN: update qra on $saver->[SCall] to $qra");
- $user->put;
}
}
+ # update lastseen if nothing else
+ $user->put;
}
}
}
}
}
}