diff options
Diffstat (limited to 'zyklonb.c')
-rw-r--r-- | zyklonb.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -355,7 +355,10 @@ irc_establish_connection (struct bot_context *ctx, real_host = buf; // XXX: we shouldn't mix these statuses with `struct error'; choose 1! - print_status ("connecting to `%s:%s'...", real_host, port); + char *address = format_host_port_pair (real_host, port); + print_status ("connecting to %s...", address); + free (address); + if (!connect (sockfd, gai_iter->ai_addr, gai_iter->ai_addrlen)) break; |