# HG changeset patch # User Christian Hammond # Date 1054365566 0 # Node ID 343dbdcc44e2669aa31175292c0a2202d544a3ff # Parent a569fef2a6b1445a59ccf55abc2e693e8a0ca418 [gaim-migrate @ 5993] Fixed it. committer: Tailor Script diff -r a569fef2a6b1 -r 343dbdcc44e2 src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Sat May 31 07:12:20 2003 +0000 +++ b/src/protocols/irc/irc.c Sat May 31 07:19:26 2003 +0000 @@ -1908,13 +1908,14 @@ if (!*hostname) g_snprintf(hostname, sizeof(hostname), "localhost"); - if (*gc->account->password) { + if (gc->account->password != NULL) { g_snprintf(buf, sizeof(buf), "PASS %s\r\n", gaim_account_get_password(account)); if (irc_write(idata->fd, buf, strlen(buf)) < 0) { gaim_connection_error(gc, "Write error"); return; } + } g_snprintf(buf, sizeof(buf), "USER %s %s %s :%s\r\n", g_get_user_name(), hostname, @@ -1976,7 +1977,7 @@ irc_login_callback, gc); if (!account->gc || (rc != 0)) { - gaim_connection_error(gc, "Unable to create socket"); + gaim_connection_error(gc, _("Unable to create socket")); return; } }