ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/schmorp-clientchk.ext
(Generate patch)

Comparing deliantra/maps/perl/schmorp-clientchk.ext (file contents):
Revision 1.1 by root, Mon Aug 21 06:47:53 2006 UTC vs.
Revision 1.2 by root, Mon Aug 21 07:13:54 2006 UTC

5sub on_login { 5sub on_login {
6 my ($pl, $host) = @_; 6 my ($pl, $host) = @_;
7 7
8 my $client = $pl->client; 8 my $client = $pl->client;
9 9
10 my $is_cf = $client =~ /^(?:GTK|X11) (?:Unix|Win32) Client ([.0-9]+)/ && $1; 10 my $is_cf = $client =~ /^(?:GTK|X11) (?:Unix|Win32) Client ([.0-9]+)/
11 warn "$client> is_cf is <$is_cf>\n";#d# 11 ? join "", map chr, split /\./, $1
12 : undef;
12 13
13 if ($is_cf && (join "", map chr, split /\./, $is_cf) lt v1.9.1) { 14 if ($is_cf && $is_cf lt v1.9.2) {
15 $pl->ob->message ("(enabling workaround for client buffer overflow)", cf::NDI_RED | cf::NDI_UNIQUE);
16 $pl->buggy_mapscroll;
17 }
18
19 if ($is_cf && $is_cf lt v1.9.1) {
14 $pl->ob->message (<<EOF, cf::NDI_RED | cf::NDI_UNIQUE); 20 $pl->ob->message (<<EOF, cf::NDI_RED | cf::NDI_UNIQUE);
15 21
16*** *** *** *** *** *** *** *** *** *** *** *** *** *** 22*** *** *** *** *** *** *** *** *** *** *** *** *** ***
17*** *** *** *** *** *** *** *** *** *** *** *** *** *** 23*** *** *** *** *** *** *** *** *** *** *** *** *** ***
18*** WARNING: Your client is BUGGY 24*** WARNING: Your client is BUGGY
19*** *** *** *** *** *** *** *** *** *** *** *** *** *** 25*** *** *** *** *** *** *** *** *** *** *** *** *** ***
20*** *** *** *** *** *** *** *** *** *** *** *** *** *** 26*** *** *** *** *** *** *** *** *** *** *** *** *** ***
21 27
22Your client ($client) is known to be buggy. If you experience crashes, strange lockups or other problems, consider upgrading to the current version. 28Your client ($client) is known to be buggy. Upgrading is highly recommended, otherwise you may experience crashes, strange lockups or other problems.
23 29
24EOF 30EOF
25 } 31 }
26 32
27 () 33 ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines