X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Ftalk.pl;h=2d647d0f68a635291149884fe504df29307ad83e;hb=8b77a917e35a222cb3efdaee28e41a60bf7bd1e0;hp=899a44305a6a543e385e6282dbcd2f8bab85ba0e;hpb=cce161221036760959ff1d0b7628a55942bf558a;p=spider.git diff --git a/cmd/talk.pl b/cmd/talk.pl index 899a4430..2d647d0f 100644 --- a/cmd/talk.pl +++ b/cmd/talk.pl @@ -29,7 +29,7 @@ my $ref = DXCluster->get($call); # if we haven't got an explicit via and we can't see them, try their node unless ($ref || $via) { my $user = DXUser->get($call); - $ref = DXCluster->get_exact($user->node); + $ref = DXCluster->get_exact($user->node) if $user; if ($ref) { $via = $user->node; push @out, "trying via $via.."; @@ -37,9 +37,12 @@ unless ($ref || $via) { } return (1, "$call not visible on the cluster") if !$ref; +# change ^ into : for transmission +$line =~ s/\^/:/og; + my $dxchan = DXCommandmode->get($to); # is it for us? if ($dxchan && $dxchan->is_user) { - $dxchan->send("$to de $from $line"); + $dxchan->send("$to de $from $line") if $dxchan->talk; Log('talk', $to, $from, $main::mycall, $line); } else { $line =~ s/\^//og; # remove any ^ characters