X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=00c82125097dcea4fe077ff4bafc3322d3ea8ccd;hb=ad222bb929a17f8ad54c567d4f59f68c5d1a8bbd;hp=71a888bfcf5a352de99b84965d296079c23742e6;hpb=a26a82ebeee2135468113c64fc25c5f9ad1000cb;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 71a888bf..00c82125 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -111,8 +111,8 @@ sub start my $pagelth = $user->pagelth; $pagelth = $default_pagelth unless defined $pagelth; $self->{pagelth} = $pagelth; - ($self->{width}) = $line =~ /width=(\d+)/; $line =~ s/\s*width=\d+\s*//; - $self->{enhanced} = $line =~ /\benhanced\b/; $line =~ s/\s*enhanced\s*//; + ($self->{width}) = $line =~ /\s*width=(\d+)/; $line =~ s/\s*width=\d+//; + $self->{enhanced} = $line =~ /\s+enhanced/; $line =~ s/\s*enhanced//; if ($line =~ /host=/) { my ($h) = $line =~ /host=(\d+\.\d+\.\d+\.\d+)/; $line =~ s/\s*host=\d+\.\d+\.\d+\.\d+// if $h; @@ -125,7 +125,7 @@ sub start $self->{width} = 80 unless $self->{width} && $self->{width} > 80; $self->{consort} = $line; # save the connection type - LogDbg('DXCommand', "$call connected from $self->{hostname} cols $self->width" . $self->{enhanced}?"enhanced":''); + LogDbg('DXCommand', "$call connected from $self->{hostname} cols $self->{width}" . ($self->{enhanced}?" enhanced":'')); # set some necessary flags on the user if they are connecting $self->{beep} = $user->wantbeep;