summaryrefslogtreecommitdiff
path: root/lib/ftp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.pl')
-rw-r--r--lib/ftp.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ftp.pl b/lib/ftp.pl
index 9528360da2..e671348105 100644
--- a/lib/ftp.pl
+++ b/lib/ftp.pl
@@ -88,7 +88,14 @@
# Initial revision
#
-require 'chat2.pl';
+eval { require 'chat2.pl' };
+die qq{$@
+The obsolete and problematic chat2.pl library has been removed from the
+Perl distribution at the request of it's author. You can either get a
+copy yourself or, preferably, fetch the new and much better Net::FTP
+package from a CPAN ftp site.
+} if $@ && $@ =~ /locate chat2.pl/;
+die $@ if $@;
eval "require 'socket.ph'" || eval "require 'sys/socket.ph'" || die "socket.ph missing: $!\n";