1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

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
This commit is contained in:
Timo Sirainen 2001-09-20 17:56:33 +00:00 committed by cras
parent 29d983093e
commit d46db0aac2

View File

@ -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';