summaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-17 16:17:11 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-17 16:59:59 +0200
commit3afd81df9b58a1a0356a1104bb80d17165f5787b (patch)
tree607cb9a850ba91888dc185ca749596dfa38e249f /zyklonb.c
parent8632e5fe8335476b82233708dd3d751cf1e7026b (diff)
downloadxK-3afd81df9b58a1a0356a1104bb80d17165f5787b.tar.gz
xK-3afd81df9b58a1a0356a1104bb80d17165f5787b.tar.xz
xK-3afd81df9b58a1a0356a1104bb80d17165f5787b.zip
Deal better with displaying IPv6 addresses
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;