1. fix set/lockout so that it is possible to lock out all SSIDs except those
[spider.git] / cmd / unset / here.pl
index 6666d4e72d493eb65f749abff61dbbbc90cce20e..19db8dbd9ffdb647bf55e85426f981cf25a15dd0 100644 (file)
@@ -14,16 +14,22 @@ my @out;
 @args = $self->call if (!@args || $self->priv < 9);
 
 foreach $call (@args) {
-  $call = uc $call;
-  my $dxchan = DXChannel->get($call);
-  my $ref = DXCluster->get_exact($call);
-  if ($dxchan && $ref) {
-       $dxchan->here(0);
-    $ref->here(0);
-       DXProt::broadcast_all_ak1a(DXProt::pc24($ref), $DXProt::me);
-       push @out, $self->msg('hereu', $call);
-  } else {
-    push @out, $self->msg('e3', "Unset Here", $call);
-  }
+       $call = uc $call;
+       my $dxchan = DXChannel->get($call);
+       if ($dxchan) {
+               $dxchan->here(0);
+               push @out, $self->msg('hereu', $call);
+               my $ref = Route::User::get($call);
+               $ref = Route::Node::get($call) unless $ref;
+               if ($ref) {
+                       $ref->here(0);
+                       my $s = DXProt::pc24($ref);
+                       DXProt::eph_dup($s);
+                       DXChannel::broadcast_all_nodes($s, $main::me) ;
+               }
+       } else {
+               push @out, $self->msg('e3', "Unset Here", $call);
+       }
 }
+
 return (1, @out);