diff options
author | Timo Sirainen <cras@irssi.org> | 2001-09-20 17:56:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-09-20 17:56:33 +0000 |
commit | d46db0aac208fbdb25008de670306c03d0f1f49e (patch) | |
tree | ac1b4e032c857810c3baf21bf42ccbaf7b8786be /src | |
parent | 29d983093e4b48e9e40f7855fcdfca3a0207802b (diff) | |
download | irssi-d46db0aac208fbdb25008de670306c03d0f1f49e.zip |
When using /SET hostname ipv6:address, replace the ':' char with '_' so it
won't break the USER command which is sent to server at connect.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1806 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-servers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 6ff6ff7d..6933361a 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -145,6 +145,11 @@ static void server_init(IRC_SERVER_REC *server) address = ptr+1; } + /* Replace ':' with '_' in our own hostname (the same IPv6 problem) */ + for (ptr = hostname; *ptr != '\0'; ptr++) { + if (*ptr == ':') *ptr = '_'; + } + username = g_strdup(conn->username); ptr = strchr(username, ' '); if (ptr != NULL) *ptr = '\0'; |