fix spurious line from previous year in sh/ann
[spider.git] / cmd / init.pl
index 7f5896f41b2774fe95d89b283b2e590ccc4d60c8..b508a04acaed2a76d853ac5f4e80c9b6fe3f7482 100644 (file)
@@ -15,13 +15,13 @@ return (1, $self->msg('e5')) if $self->priv < 5;
 foreach $call (@calls) {
        $call = uc $call;
        next if $call eq $main::mycall;
-       my $dxchan = DXChannel->get($call);
+       my $dxchan = DXChannel::get($call);
        if ($dxchan) {
                if ($dxchan->is_node) {
                        # first clear out any nodes on this dxchannel
                        my $parent = Route::Node::get($call);
                        my @rout = $parent->del_nodes;
-                       $dxchan->route_pc21($self, @rout) if @rout;
+                       $dxchan->route_pc21(undef, $self, @rout) if @rout;
                        $dxchan->send(DXProt::pc18());
                        $dxchan->state('init');
                        push @out, $self->msg('init1', $call);