*** empty log message ***
[spider.git] / perl / DXCommandmode.pm
index e8fd7d5a6fc619c1f0ccf6e15594845261a69b2f..da449f72c8bea36d17702f1c8b6cb75b2a642ecc 100644 (file)
@@ -258,12 +258,21 @@ sub finish
 {
        my $self = shift;
        my $call = $self->call;
-       
+
+       # log out text
+       if (-e "$main::data/logout") {
+               open(I, "$main::data/logout") or confess;
+               my @in = <I>;
+               close(I);
+               $self->send_now('D', @in);
+               sleep(1);
+       }
+
        if ($call eq $main::myalias) { # unset the channel if it is us really
                my $node = DXNode->get($main::mycall);
                $node->{dxchan} = 0;
        }
-       my $ref = DXNodeuser->get($call);
+       my $ref = DXCluster->get_exact($call);
        
        # issue a pc17 to everybody interested
        my $nchan = DXChannel->get($main::mycall);