# HG changeset patch # User Eric Warmenhoven # Date 1003797302 0 # Node ID 3526c5581f92b979f4289d86bb39719a8c5e7831 # Parent fc54c1a070e782241a97532bec6c83590872bfc0 [gaim-migrate @ 2587] we don't need to be reporting every bug that gets fixed :) committer: Tailor Script diff -r fc54c1a070e7 -r 3526c5581f92 ChangeLog --- a/ChangeLog Tue Oct 23 00:19:38 2001 +0000 +++ b/ChangeLog Tue Oct 23 00:35:02 2001 +0000 @@ -12,7 +12,6 @@ selects "on away" or "on idle", if the user is away or idle. * Add Opera to the available browsers (thanks Brian Enigma) - * The applet no longer crashes when you remove it while signed on * Improved log viewer (thanks to Ben Miller) * Double clicking a name unqueue's away messages for that buddy (thanks to Sean Egan) diff -r fc54c1a070e7 -r 3526c5581f92 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Tue Oct 23 00:19:38 2001 +0000 +++ b/src/protocols/irc/irc.c Tue Oct 23 00:35:02 2001 +0000 @@ -888,19 +888,19 @@ if (idata->fd != source) idata->fd = source; - g_snprintf(buf, sizeof(buf), "NICK %s\r\n", gc->username); + gethostname(hostname, sizeof(hostname) - 1); + hostname[sizeof(hostname) - 1] = 0; + if (!*hostname) + g_snprintf(hostname, sizeof(hostname), "localhost"); + g_snprintf(buf, sizeof(buf), "USER %s %s %s :Gaim (%s)\r\n", + g_get_user_name(), hostname, gc->user->proto_opt[USEROPT_SERV], WEBSITE); if (irc_write(idata->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); signoff(gc); return; } - gethostname(hostname, sizeof(hostname) - 1); - hostname[sizeof(hostname) - 1] = 0; - if (!*hostname) - g_snprintf(hostname, sizeof(hostname), "localhost"); - g_snprintf(buf, sizeof(buf), "USER %s %s %s :Gaim (%s)\r\n", - g_get_user_name(), hostname, gc->user->proto_opt[USEROPT_SERV], WEBSITE); + g_snprintf(buf, sizeof(buf), "NICK %s\r\n", gc->username); if (irc_write(idata->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); signoff(gc);