changeset 5589:343dbdcc44e2

[gaim-migrate @ 5993] Fixed it. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 31 May 2003 07:19:26 +0000
parents a569fef2a6b1
children 011a0a975060
files src/protocols/irc/irc.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}
 }