fix problem with myalias user going
[spider.git] / perl / DXCommandmode.pm
index 6306226d7e6862f87b4ae61c02753e36e3094961..3c45aee968f0c1c0ebc8c1c560f8f0e184d51d5a 100644 (file)
@@ -390,6 +390,12 @@ sub finish
        my $conn = shift;
        my $call = $self->call;
 
+       # reset the redirection of messages back to 'normal' if we are the sysop
+       if ($call eq $main::myalias) {
+               my $node = DXNode->get($main::mycall) or die "$main::mycall not allocated in DXNode database";
+               $node->dxchan($DXProt::me);
+       }
+
        # I was the last node visited
     $self->user->node($main::mycall);