aboutsummaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
Diffstat (limited to 'zyklonb.c')
-rw-r--r--zyklonb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 806de8b..d4e66ca 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -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;