irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit bf5eb1d13b39b745d112bb6cd4401cf2663b55a1
parent 1b8195cb8cf0800c4a6ea3fc9551dd23f62f4b9f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 29 Jan 2014 22:41:56 +0100

don't report 'no error' as error

Diffstat:
irctk.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/irctk.c b/irctk.c @@ -1714,7 +1714,12 @@ static void* irc_thread (void *arg) if (args.ready == 0) { // we hadn't even connected yet // TODO2 maybe not all errors are fatal? - info("Connection failed: %s\n", irc_strerror(ret)); + if (ret) + info("Connection failed: %s\n", irc_strerror(ret)); + else + // TODO2 this seems to happen when a port is blocked + // can we notice the error elsewhere? + info("Connection failed (no reason specified)\n"); if (ret == LIBIRC_ERR_CONNECT_SSL_FAILED) info("(Maybe try without --ssl?)\n"); if (ret == LIBIRC_ERR_SSL_CERT_VERIFY_FAILED)