# HG changeset patch
# User Luke Schierer <lschiere@pidgin.im>
# Date 1044280645 0
# Node ID 238e1dd2f1a78cf122c074a6038cfe58052caaac
# Parent  4c394222c73293d6191abff850a11a89c3eeef4f
[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>

diff -r 4c394222c732 -r 238e1dd2f1a7 src/protocols/gg/gg.c
--- 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;