remove $Id$ strings from everywhere that I can find
[spider.git] / cmd / unset / here.pl
index 7e2991528551ef96c05a1fa2ca0373349481ff63..59b2080a3197d8131a0d13a31bf82ec5d9fae9b1 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Copyright (c) 1998 - Dirk Koopman
 #
-# $Id$
+#
 #
 
 my ($self, $line) = @_;
@@ -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($call);
-  if ($dxchan && $ref) {
-       $dxchan->here(0);
-    $ref->here(0);
-       DXProt::broadcast_ak1a(DXProt::pc24($ref));
-       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);