fiz console.pl resizing
[spider.git] / perl / DXChannel.pm
index fedaee056d4815807f744748297b7b786f322300..f2a1638cdf0c101817bc92a8aa22c795472bf43b 100644 (file)
@@ -724,6 +724,8 @@ sub process
                                $dxchan->disconnect;
                        } elsif ($sort eq 'D') {
                                ;                               # ignored (an echo)
+                       } elsif ($sort eq 'C') {
+                               $dxchan->width($line); # change number of columns
                        } elsif ($sort eq 'G') {
                                $dxchan->enhanced($line);
                        } else {
@@ -746,6 +748,20 @@ sub handle_xml
        return $r;
 }
 
+sub registered
+{
+       my $self = shift;
+
+       # the sysop is registered!
+       return 1 if $self->call eq $main::myalias || $self->call eq $main::mycall;
+       
+       if ($main::reqreg) {
+               return $self->{registered};
+       } else {
+               return 1;
+       }
+}
+
 #no strict;
 sub AUTOLOAD
 {