#! perl # check client version and string for old clients and possibly issue warnings for them sub on_login { my ($pl, $host) = @_; my $client = $pl->client; my $is_cf = $client =~ /^(?:GTK|X11) (?:Unix|Win32) Client ([.0-9]+)/ ? join "", map chr, split /\./, $1 : undef; if ($is_cf && $is_cf lt v1.9.2) { $pl->ob->message ("(enabling workaround for client buffer overflow)", cf::NDI_RED | cf::NDI_UNIQUE); $pl->buggy_mapscroll; } if ($is_cf && $is_cf lt v1.9.1) { $pl->ob->message (<