From: Eric W. <war...@us...> - 2001-10-23 00:35:05
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory usw-pr-cvs1:/tmp/cvs-serv27142/src/protocols/irc Modified Files: irc.c Log Message: we don't need to be reporting every bug that gets fixed :) Index: irc.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- irc.c 2001/10/18 12:12:38 1.43 +++ irc.c 2001/10/23 00:35:02 1.44 @@ -888,19 +888,19 @@ if (idata->fd != source) idata->fd = source; - 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); - 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); + if (irc_write(idata->fd, buf, strlen(buf)) < 0) { + hide_login_progress(gc, "Write error"); + signoff(gc); + return; + } + + 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); |