mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
29d983093e
commit
d46db0aac2
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user