fixed routing talk messages
[spider.git] / cmd / talk.pl
index ebde8888ebd106101c082af5afff612489a218d7..ced47037b901b6951ec62f22fd323cb7a9254784 100644 (file)
@@ -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..";
@@ -47,7 +47,7 @@ if ($dxchan && $dxchan->is_user) {
 } else {
        $line =~ s/\^//og;                      # remove any ^ characters
        my $prot = DXProt::pc10($from, $to, $via, $line);
-       DXProt::route($via?$via:$to, $prot);
+       DXProt::route(undef,$via?$via:$to, $prot);
        Log('talk', $to, $from, $via?$via:$main::mycall, $line);
 }