irctk

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

commit 4e520b919798ae07a6f40856479969761abf9fbf
parent 879628187bb4b942cda37ff0e4642a98970ceeac
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 29 Aug 2014 20:40:53 +0200

check for LIBIRC_ERR_SSL_NOT_SUPPORTED

Diffstat:
irctk.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/irctk.c b/irctk.c @@ -1738,8 +1738,12 @@ irc_session_t* do_connect() args.server, args.port, args.nick, args.password); if (irc_connect(s, args.server, args.port, args.password, args.nick, - args.username, args.realname)) - die(E_CONNECT, "Could not connect: %s\n", irc_strerror (irc_errno(s))); + args.username, args.realname)) { + info("Could not connect: %s\n", irc_strerror (irc_errno(s))); + if (irc_errno(s) == LIBIRC_ERR_SSL_NOT_SUPPORTED) + info("(Did you ./configure --enable-ssl when building libircclient?)\n"); + exit(E_CONNECT); + } return s; }