diff -up ../bnc2.9.4-orig/cmds.c ./cmds.c --- ../bnc2.9.4-orig/cmds.c 2005-02-07 14:27:40.000000000 +1300 +++ ./cmds.c 2008-02-03 13:32:43.000000000 +1300 @@ -9,6 +9,7 @@ #include #include #include +#include #ifdef HAVE_SSL #include diff -up ../bnc2.9.4-orig/server.c ./server.c --- ../bnc2.9.4-orig/server.c 2005-02-07 14:29:11.000000000 +1300 +++ ./server.c 2008-02-03 13:34:00.000000000 +1300 @@ -753,14 +753,14 @@ int irc_connect(struct cliententry *cptr fd = socket (rfamily, SOCK_STREAM, 0); if(fd == -1) { - tprintf(&cptr->loc, "NOTICE AUTH :Failed Connection\n"); + tprintf(&cptr->loc, "NOTICE AUTH :Failed to create socket: %s\n", strerror(errno)); return -1; } res = setnonblock(fd); if(res == -1) { - tprintf(&cptr->loc, "NOTICE AUTH :Failed Connection\n"); + tprintf(&cptr->loc, "NOTICE AUTH :Socket error: %s\n", strerror(errno)); close(fd); return -1; } @@ -790,7 +790,7 @@ int irc_connect(struct cliententry *cptr cptr->flags |= FLAGCONNECTING; break; default: - tprintf(&cptr->loc, "NOTICE AUTH :Failed Connection\n"); + tprintf(&cptr->loc, "NOTICE AUTH :Failed Connection %s\n", strerror(errno)); close(fd); return -1; }