]> dxcluster.org Git - spider.git/commitdiff
fix passphrase
authorminima <minima>
Tue, 21 Jan 2003 15:10:36 +0000 (15:10 +0000)
committerminima <minima>
Tue, 21 Jan 2003 15:10:36 +0000 (15:10 +0000)
perl/cluster.pl

index fb093d7071d94731fec25b0a6958308f0bc943bd..f62d2522bac7f707a6da0d88e8d75abe69a32b2b 100755 (executable)
@@ -194,20 +194,15 @@ sub new_channel
 
        # create the channel
        if ($user->wantnp) {
-               if ($user->passphrase && $main::me->user->passphrase) {
-                       $dxchan = QXProt->new($call, $conn, $user);
-               } else {
-                       unless ($user->passphrase) {
-                               Log('DXCommand', "$call using NP but has no passphrase");
-                               dbg("$call using NP but has no passphrase");
-                       }
-                       unless ($main::me->user->passphrase) {
-                               Log('DXCommand', "$main::mycall using NP but has no passphrase");
-                               dbg("$main::mycall using NP but has no passphrase");
-                       }
-#                      already_conn($conn, $call, "Need to exchange passphrases");
-                       return;
+               unless ($user->passphrase) {
+                       Log('DXCommand', "$call using NP but has no passphrase");
+                       dbg("$call using NP but has no passphrase");
+               }
+               unless ($main::me->user->passphrase) {
+                       Log('DXCommand', "$main::mycall using NP but has no passphrase");
+                       dbg("$main::mycall using NP but has no passphrase");
                }
+               $dxchan = QXProt->new($call, $conn, $user);
        } elsif ($user->is_node) {
                $dxchan = DXProt->new($call, $conn, $user);
        } elsif ($user->is_user) {