force all channels to default width 80 columns
[spider.git] / perl / DXChannel.pm
index c35d21ca1517d7d286185fbb1d1426d685793397..2d43b0f07cae85dc472abeb4f01ec307847fb6fc 100644 (file)
@@ -168,6 +168,7 @@ sub alloc
        $self->{oldstate} = 0;
        $self->{lang} = $main::lang if !$self->{lang};
        $self->{func} = "";
+       $self->{width} = 80;
 
        # add in all the dxcc, itu, zone info
        my @dxcc = Prefix::extract($call);
@@ -718,6 +719,8 @@ sub process_one
                        $self->enhanced($line);
                } elsif ($sort eq 'A' || $sort eq 'O' || $sort eq 'W') {
                        $self->start($line, $sort);
+               } elsif ($sort eq 'C') {
+                       $self->width($line); # change number of columns
                } elsif ($sort eq 'Z') {
                        $self->disconnect;
                } elsif ($sort eq 'D') {