changeset 1866:466fc4ada7cb

[gaim-migrate @ 1876] more proxy fixes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 20 May 2001 10:35:47 +0000
parents 8d758ff5957e
children b508cbbe9c48
files plugins/irc.c plugins/jabber/jabber.c plugins/msn/msn.c src/toc.c
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/irc.c	Sun May 20 09:09:02 2001 +0000
+++ b/plugins/irc.c	Sun May 20 10:35:47 2001 +0000
@@ -1863,7 +1863,7 @@
 			atoi(user->proto_opt[USEROPT_PROXYTYPE]),
 			user->proto_opt[USEROPT_USER], user->proto_opt[USEROPT_PASS],
 			irc_login_callback, gc);
-	if (user->gc && (idata->fd < 0)) {
+	if (!user->gc || (idata->fd < 0)) {
 		hide_login_progress(gc, "Unable to create socket");
 		signoff(gc);
 		return;
--- a/plugins/jabber/jabber.c	Sun May 20 09:09:02 2001 +0000
+++ b/plugins/jabber/jabber.c	Sun May 20 10:35:47 2001 +0000
@@ -477,7 +477,7 @@
 			atoi(user->proto_opt[USEROPT_PROXYTYPE]),
 			user->proto_opt[USEROPT_USER], user->proto_opt[USEROPT_PASS],
 			gjab_connected, j);
-	if (user->gc && (j->fd < 0)) {
+	if (!user->gc || (j->fd < 0)) {
 		STATE_EVT(JCONN_STATE_OFF)
 		return;
 	}
--- a/plugins/msn/msn.c	Sun May 20 09:09:02 2001 +0000
+++ b/plugins/msn/msn.c	Sun May 20 10:35:47 2001 +0000
@@ -571,7 +571,7 @@
 			msn_answer_callback, mc);
 		g_strfreev(address);
 		g_strfreev(res);
-		if (user->gc && (mc->fd < 0)) {
+		if (!user->gc || (mc->fd < 0)) {
 			/* Looks like we had an error connecting. */
 			g_free(mc->session);
 			g_free(mc->secret);
@@ -813,7 +813,7 @@
 			atoi(gc->user->proto_opt[USEROPT_PROXYTYPE]),
 			gc->user->proto_opt[USEROPT_USER], gc->user->proto_opt[USEROPT_PASS],
 			msn_login_callback, gc);
-		if (user->gc && (md->fd < 0)) {
+		if (!user->gc || (md->fd < 0)) {
 			g_strfreev(res);
 			hide_login_progress(gc, "Error connecting to server");
 			signoff(gc);
@@ -919,7 +919,7 @@
 			atoi(user->proto_opt[USEROPT_PROXYTYPE]),
 			user->proto_opt[USEROPT_USER], user->proto_opt[USEROPT_PASS],
 			msn_login_callback, gc);
-	if (user->gc && (md->fd < 0)) {
+	if (!user->gc || (md->fd < 0)) {
 		hide_login_progress(gc, "Error connecting to server");
 		signoff(gc);
 		return;
--- a/src/toc.c	Sun May 20 09:09:02 2001 +0000
+++ b/src/toc.c	Sun May 20 10:35:47 2001 +0000
@@ -156,7 +156,7 @@
 			  user->proto_opt[USEROPT_USER], user->proto_opt[USEROPT_PASS],
 			  toc_login_callback, gc);
 
-	if (user->gc && (tdt->toc_fd < 0)) {
+	if (!user->gc || (tdt->toc_fd < 0)) {
 		g_snprintf(buf, sizeof(buf), "Connect to %s failed", user->proto_opt[USEROPT_AUTH]);
 		hide_login_progress(gc, buf);
 		signoff(gc);