changeset 1718:20f070721b9f

[gaim-migrate @ 1728] fix for bad password signoff stuff. yeah. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 15 Apr 2001 03:47:50 +0000
parents 1c8e109f8934
children 5800449e7ecc
files plugins/yay/rxhandlers.c
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/yay/rxhandlers.c	Sat Apr 14 07:51:55 2001 +0000
+++ b/plugins/yay/rxhandlers.c	Sun Apr 15 03:47:50 2001 +0000
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 
-static int yahoo_parse_config(struct yahoo_session *session, struct yahoo_conn *conn, char *buf)
+static void yahoo_parse_config(struct yahoo_session *session, struct yahoo_conn *conn, char *buf)
 {
 	char **str_array = g_strsplit(buf, "\n", 1024);
 	char **it;
@@ -36,7 +36,7 @@
 			yahoo_close(session, conn);
 			if (session->callbacks[YAHOO_HANDLE_BADPASSWORD].function)
 				(*session->callbacks[YAHOO_HANDLE_BADPASSWORD].function)(session);
-			return 1;
+			return;
 		} else if (!strncmp(*it, "Set-Cookie: ", strlen("Set-Cookie: "))) {
 			char **sa;
 			char **m;
@@ -52,7 +52,7 @@
 				YAHOO_PRINT(session, YAHOO_LOG_ERROR, "did not get cookie");
 				if (session->callbacks[YAHOO_HANDLE_DISCONNECT].function)
 					(*session->callbacks[YAHOO_HANDLE_DISCONNECT].function)(session);
-				return 1;
+				return;
 			}
 
 			sa = g_strsplit(session->cookie, "&", 8);
@@ -105,7 +105,6 @@
 	yahoo_close(session, conn);
 	if (session->callbacks[YAHOO_HANDLE_LOGINCOOKIE].function)
 		(*session->callbacks[YAHOO_HANDLE_LOGINCOOKIE].function)(session);
-	return 0;
 }
 
 static void yahoo_parse_status(struct yahoo_session *sess, struct yahoo_packet *pkt)
@@ -306,11 +305,7 @@
 			return;
 		}
 		YAHOO_PRINT(session, YAHOO_LOG_DEBUG, buf);
-		if (yahoo_parse_config(session, conn, buf)) {
-			YAHOO_PRINT(session, YAHOO_LOG_CRITICAL, "could not parse auth response");
-			if (session->callbacks[YAHOO_HANDLE_DISCONNECT].function)
-				(*session->callbacks[YAHOO_HANDLE_DISCONNECT].function)(session);
-		}
+		yahoo_parse_config(session, conn, buf);
 		g_free(buf);
 	} else if (conn->type == YAHOO_CONN_TYPE_MAIN) {
 		struct yahoo_packet pkt;