summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-servers.c5
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';