X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=ff173906bebef9945743b6e5eeb089bca430a886;hb=8db1b590ed9b6b260fb4d437c120cccdd08bbb4d;hp=96ccc0a494aa872575064fee0a22cee274ad30c9;hpb=3634fba90a64fe488d237f438d9945d81158da52;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 96ccc0a4..ff173906 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 @@ -423,6 +425,9 @@ sub disconnect { my $self = shift; my $call = $self->call; + + return if $self->{disconnecting}++; + delete $self->{senddbg}; my $uref = Route::User::get($call);