# HG changeset patch # User Paul Aurich # Date 1302096986 0 # Node ID 1ae16c9b2164fe4836fb0112b3e5c67583276cce # Parent 1a248102e437faf0a5c09bbaf3f40727f1cfcac2# Parent a0b9ecdc98c4a624ec2cabed85c895e8be5756a2 merge of '840e5251829610a4d5500832438e6086f442148c' and 'e357c34b0d64535b96825a863bbd90aec7a71880' diff -r a0b9ecdc98c4 -r 1ae16c9b2164 libpurple/protocols/irc/irc.c --- a/libpurple/protocols/irc/irc.c Wed Apr 06 13:35:53 2011 +0000 +++ b/libpurple/protocols/irc/irc.c Wed Apr 06 13:36:26 2011 +0000 @@ -403,8 +403,7 @@ static gboolean do_login(PurpleConnection *gc) { char *buf, *tmp = NULL; - char *hostname, *server; - const char *hosttmp; + char *server; const char *username, *realname; struct irc_conn *irc = gc->proto_data; const char *pass = purple_connection_get_password(gc); @@ -432,17 +431,6 @@ } } - hosttmp = purple_get_host_name(); - if (*hosttmp == ':') { - /* This is either an IPv6 address, or something which - * doesn't belong here. Either way, we need to escape - * it. */ - hostname = g_strdup_printf("0%s", hosttmp); - } else { - /* Ugly, I know. */ - hostname = g_strdup(hosttmp); - } - if (*irc->server == ':') { /* Same as hostname, above. */ server = g_strdup_printf("0%s", irc->server); @@ -450,10 +438,9 @@ server = g_strdup(irc->server); } - buf = irc_format(irc, "vvvv:", "USER", tmp ? tmp : username, hostname, server, + buf = irc_format(irc, "vvvv:", "USER", tmp ? tmp : username, "*", server, strlen(realname) ? realname : IRC_DEFAULT_ALIAS); g_free(tmp); - g_free(hostname); g_free(server); if (irc_send(irc, buf) < 0) { g_free(buf);