… | |
… | |
5 | sub on_login { |
5 | sub 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 | |
22 | Your client ($client) is known to be buggy. If you experience crashes, strange lockups or other problems, consider upgrading to the current version. |
28 | Your client ($client) is known to be buggy. Upgrading is highly recommended, otherwise you may experience crashes, strange lockups or other problems. |
23 | |
29 | |
24 | EOF |
30 | EOF |
25 | } |
31 | } |
26 | |
32 | |
27 | () |
33 | () |