diff options
author | Timo Sirainen <cras@irssi.org> | 2003-05-25 09:49:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-05-25 09:49:32 +0000 |
commit | aead9916698265ca21f27a839e5539674da18b3a (patch) | |
tree | ec7593038b462aa46449ecbdad7b7ae33b575f2a /src | |
parent | 5fcdf3cb83f3ede01da767e8e834e974b42b019e (diff) | |
download | irssi-aead9916698265ca21f27a839e5539674da18b3a.zip |
Connecting to IPv6 servers in short form as 1:2:: didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3113 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-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) */ |