X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=b6140082f6a741b59ab5ece9541823213e2eafaa;hb=412fb1b9e4070d7791f4e986b55bbc0c06f612ea;hp=96ccc0a494aa872575064fee0a22cee274ad30c9;hpb=60d889442d24ab5567fe0b6c9bb923f4297a07bd;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 96ccc0a4..b6140082 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -83,6 +83,8 @@ sub start $self->{lang} = $user->lang || $main::lang || 'en'; $self->{pagelth} = $user->pagelth || 20; $self->{priv} = 0 if $line =~ /^(ax|te)/; # set the connection priv to 0 - can be upgraded later + ($self->{width}) = $line =~ /width=(\d+)/; + $self->{width} = 80 unless $self->{width} && $self->{width} > 80; $self->{consort} = $line; # save the connection type # set some necessary flags on the user if they are connecting