1. made sure that 'en' is the default language on new users.
[spider.git] / cmd / talk.pl
index ced47037b901b6951ec62f22fd323cb7a9254784..fa7ade223f94594e0a476c7bb859601ae14800d9 100644 (file)
@@ -24,11 +24,13 @@ if ($argv[1] eq '>') {
 }
 
 my $call = $via ? $via : $to;
-my $ref = DXCluster->get($call);
+my $ref = DXCluster->get_exact($call);     # try an exact call
+$ref = DXCluster->get($call) unless $ref;  # try one ignoring SSID
+$ref = DXChannel->get($call) unless $ref;  # is it local?
 
 # 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);
+       my $user = DXUser->get_current($call);
        $ref = DXCluster->get_exact($user->node) if $user;
        if ($ref) {
                $via = $user->node;