More diagnostics for localAddr users. (check the version of Net::IRC)

This commit is contained in:
ian%hixie.ch 2003-10-03 23:03:52 +00:00
Родитель 2621edf1aa
Коммит 123d2c4203
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -297,7 +297,11 @@ sub connect {
)) {
&debug("Could not connect. Are you sure '$server:$port' is a valid host?");
if (defined($localAddr)) {
&debug("Is '$localAddr' the correct address of the interface to use?");
if ($Net::IRC::VERSION < 0.73) {
&debug("To use 'localAddr' you need Net::IRC version 0.73 or higher (you have $Net::IRC::VERSION)");
} else {
&debug("Is '$localAddr' the correct address of the interface to use?");
}
} else {
&debug("Try editing '$cfgfile' to set 'localAddr' to the address of the interface to use.");
}