]> dxcluster.org Git - spider.git/commitdiff
get regex for pc9[2] right in handle_18
authorminima <minima>
Sun, 14 Jan 2007 23:00:16 +0000 (23:00 +0000)
committerminima <minima>
Sun, 14 Jan 2007 23:00:16 +0000 (23:00 +0000)
perl/DXProtHandle.pm

index 422b1714af791c5aba6b9cec73cc9cc6fc490c20..241b7c3a4b316b33e229f8f13004e4bcba0a305d 100644 (file)
@@ -605,9 +605,9 @@ sub handle_18
                        $self->user->put;
                        $self->sort('S');
                }
-               $self->{handle_xml}++ if DXXml::available() && $_[1] =~ /\bxml\b/;
-               my ($pc9x) = $_[1] =~ /\bpc9\[(\d+)\]\b/;
-               $self->{do_pc92}++ if (defined $pc9x && $pc9x =~ /2/) || $_[1] =~ /\bpc92\b/;
+               $self->{handle_xml}++ if DXXml::available() && $_[1] =~ /\bxml/;
+               my ($pc9x) = $_[1] =~ /\bpc9\[(\d+)\]/;
+               $self->{do_pc92}++ if defined $pc9x && $pc9x =~ /2/;
        } else {
                $self->version(50.0);
                $self->version($_[2] / 100) if $_[2] && $_[2] =~ /^\d+$/;