X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=8e5d789bdd5e36ae7e43a62dd52daa452db1c94a;hb=5cfb9a8a63b34dd2b40c11e05cf5322649c96832;hp=7025f683d0e3bff188db490801c6a936d47fefac;hpb=9a31104f31ce5d80a659dea3de9dbf9a5d46ef8e;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 7025f683..8e5d789b 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -348,7 +348,7 @@ sub send_talks $to = $ent unless $to; my $call = $via ? $via : $to; my $clref = Route::get($call); - my $dxchan = $clref->dxchan if $clref; + my $dxchan = $clref->bestdxchan if $clref; if ($dxchan) { $dxchan->talk($self->{call}, $to, $via, $line); } else { @@ -765,7 +765,7 @@ sub talk my $key = "$to$from"; unless (exists $nothereslug{$key}) { my ($ref, $dxchan); - if (($ref = Route::get($from)) && ($dxchan = $ref->dxchan)) { + if (($ref = Route::get($from)) && ($dxchan = $ref->bestdxchan)) { my $name = $self->user->name || $to; my $s = $self->user->nothere || $dxchan->msg('nothere', $name); $nothereslug{$key} = $main::systime;