+19Aug01=======================================================================
+1. Fix rcmds
17Aug01=======================================================================
1. Sort out PC41 handling to include type 5 records for QRA locators and also
remove all filtering (but retain ephemeral dup checking).
my $s = $rcmds{$fromnode};
if ($s) {
my $dxchan = DXChannel->get($s->{call});
- my $ref = DXChannel->get($user) || $dxchan;
- if ($ref->{call} eq $main::mycall) {
- $ref = DXChannel->get($main::myalias) || $ref;
- }
+ my $ref = $user eq $tonode ? $dxchan : (DXChannel->get($user) || $dxchan);
$ref->send($line) if $ref;
delete $rcmds{$fromnode} if !$dxchan;
} else {
last;
}
}
- if ($cmd =~ /^\s*\'.*\'\s+\'.*\'/i) {
- $conn->_dochat($cmd, $msg);
+ if ($cmd =~ /^\s*\'([^\']*)\'\s+\'([^\']*)\'/) {
+ $conn->_dochat($cmd, $msg, $1, $2);
last;
}
if ($cmd =~ /^\s*cl\w+\s+(.*)/i) {
my $conn = shift;
my $cmd = shift;
my $line = shift;
+ my $expect = shift;
+ my $send = shift;
if ($line) {
- my ($expect, $send) = $cmd =~ /^\s*\'(.*)\'\s+\'(.*)\'/;
if ($expect) {
dbg("connect $conn->{cnum}: expecting: \"$expect\" received: \"$line\"") if isdbg('connect');
if ($conn->{abort} && $line =~ /\Q$conn->{abort}/i) {