diff src/protocols/gg/gg.c @ 4511:238e1dd2f1a7

[gaim-migrate @ 4787] Carl-Daniel Hailfinger (c-d_hailfinger) found that: "Current CVS with debug is unable to login to Gadu-Gadu. It establishes a TCP connection (which stays up until I quit Gaim), but throws following error: 'Could not log in. Connection impossible' (rough translation of german) '3838257 konnte sich nicht anmelden: Verbindung nicht mo'glich' " he then further took the time to provide a patch :-) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 03 Feb 2003 13:57:25 +0000
parents 3196d9044a45
children 2ad2f5caeb81
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Mon Feb 03 02:45:17 2003 +0000
+++ b/src/protocols/gg/gg.c	Mon Feb 03 13:57:25 2003 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 4766 2003-01-31 13:03:47Z faceprint $
+ * $Id: gg.c 4787 2003-02-03 13:57:25Z lschiere $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  * 
@@ -306,7 +306,7 @@
 	if (gd->sess->fd != source)
 		gd->sess->fd = source;
 
-	if (source != 0) {
+	if (source == 0) {
 		hide_login_progress(gc, _("Could not connect"));
 		signoff(gc);
 		return;
@@ -423,7 +423,7 @@
 	}
 	debug_printf("Found GG connection\n");
 	
-	if (source != 0) {
+	if (source == 0) {
 		hide_login_progress(gc, _("Unable to connect."));
 		signoff(gc);
 		return;
@@ -934,7 +934,7 @@
 		return;
 	}
 
-	if (source != 0) {
+	if (source == 0) {
 		g_free(request);
 		g_free(hdata);
 		return;