diff options
-rw-r--r-- | src/irc/core/irc-servers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index fa3ded76..8a8473e4 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -132,7 +132,9 @@ static void server_init(IRC_SERVER_REC *server) if (ptr != NULL) { /* IPv6 address .. doesn't work here, use the string after the last : char */ - address = ptr+1; + address = ptr+1; + if (*address == '\0') + address = "x"; } /* Replace ':' with '_' in our own hostname (the same IPv6 problem) */ |