]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/Irc.pl
print possible fix as error message.
[infobot.git] / src / IRC / Irc.pl
index 84abc4b36c4a154ad695bdb61f257b24341253be..82816e0d6ccdb4e23971f69151a472027d4b96f4 100644 (file)
@@ -102,7 +102,10 @@ sub irc {
     $conn = $irc->newconn(%args);
 
     if (!defined $conn) {
-       &ERROR("internal: perl IRC connection object does not exist.");
+       &ERROR("IRC: connection failed.");
+       &ERROR("Please check /etc/hosts to see if you have a localhost line like:");
+       &ERROR("127.0.0.1   localhost    localhost");
+       &ERROR("If this is still a problem, please contact the maintainer.");
        return 1;
     }