projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deploy a default input route if none present.
[spider.git]
/
perl
/
DXProtHandle.pm
diff --git
a/perl/DXProtHandle.pm
b/perl/DXProtHandle.pm
index 5170fa6ca352cc473aade045a1e4c9c7ad01cc9e..d6ae6cfa81c0d353c280f4f120ec2f53c46b20a1 100644
(file)
--- a/
perl/DXProtHandle.pm
+++ b/
perl/DXProtHandle.pm
@@
-37,9
+37,6
@@
use RouteDB;
use strict;
use strict;
-use vars qw($VERSION $BRANCH);
-($VERSION, $BRANCH) = dxver(q$Revision$);
-
use vars qw($pc11_max_age $pc23_max_age $last_pc50 $eph_restime $eph_info_restime $eph_pc34_restime
$last_hour $last10 %eph %pings %rcmds $ann_to_talk
$pingint $obscount %pc19list $chatdupeage $chatimportfn
use vars qw($pc11_max_age $pc23_max_age $last_pc50 $eph_restime $eph_info_restime $eph_pc34_restime
$last_hour $last10 %eph %pings %rcmds $ann_to_talk
$pingint $obscount %pc19list $chatdupeage $chatimportfn
@@
-599,7
+596,7
@@
sub handle_18
$self->state('init');
# record the type and version offered
$self->state('init');
# record the type and version offered
- if ($_[1] =~ /DXSpider Version: (\d+\.\d+) Build: (\d+
\.\d+
)/) {
+ if ($_[1] =~ /DXSpider Version: (\d+\.\d+) Build: (\d+
(?:\.\d+)?
)/) {
$self->version(53 + $1);
$self->user->version(53 + $1);
$self->build(0 + $2);
$self->version(53 + $1);
$self->user->version(53 + $1);
$self->build(0 + $2);
@@
-872,6
+869,11
@@
sub handle_21
return;
}
return;
}
+ if (eph_dup($line)) {
+ dbg("PCPROT: dup PC21 detected") if isdbg('chanerr');
+ return;
+ }
+
if (@rout) {
$self->route_pc21($origin, $line, @rout);
# $self->route_pc92d($main::mycall, $line, $main::routeroot, @rout);
if (@rout) {
$self->route_pc21($origin, $line, @rout);
# $self->route_pc92d($main::mycall, $line, $main::routeroot, @rout);