projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a7585f
)
unrolled the checking in decode_input a bit
author
minima
<minima>
Sun, 29 Oct 2000 12:37:11 +0000
(12:37 +0000)
committer
minima
<minima>
Sun, 29 Oct 2000 12:37:11 +0000
(12:37 +0000)
perl/DXChannel.pm
patch
|
blob
|
history
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 9d52d67c3a204481a220e2feac51a833efd4357b..d566c177c05f07a1ac0b76eac0419db98934010e 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-440,12
+440,16
@@
sub decode_input
my $chcall = (ref $dxchan) ? $dxchan->call : "UN.KNOWN";
# the above regexp must work
my $chcall = (ref $dxchan) ? $dxchan->call : "UN.KNOWN";
# the above regexp must work
- if (!defined $sort || !defined $call || !defined $line ||
- (ref $dxchan && $call ne $chcall)) {
+ unless (defined $sort && defined $call && defined $line) {
$data =~ s/([\x00-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg;
$data =~ s/([\x00-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg;
- dbg('
chan', "DUFF Line from
$chcall: $data");
+ dbg('
err', "DUFF Line on
$chcall: $data");
return ();
}
return ();
}
+
+ if(ref($dxchan) && $call ne $chcall) {
+ dbg('err', "DUFF Line come in for $call on wrong channel $chcall" );
+ return();
+ }
return ($sort, $call, $line);
}
return ($sort, $call, $line);
}