libpurple/protocols/yahoo/yahoo.c

changeset 23869
e650ca347f69
parent 23545
676b13ddfd2c
child 23870
de158d6a6c24
--- a/libpurple/protocols/yahoo/yahoo.c	Wed Jul 16 09:16:52 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Thu Jul 17 04:38:07 2008 +0000
@@ -148,6 +148,14 @@
 	gboolean unicode = FALSE;
 	char *message = NULL;
 
+	if (pkt->service == YAHOO_SERVICE_LOGON && pkt->status == -1) {
+		if (!purple_account_get_remember_password(account))
+			purple_account_set_password(account, NULL);
+		purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NAME_IN_USE,
+			_("System is busy, please try again later."));
+		return;
+	}
+
 	if (pkt->service == YAHOO_SERVICE_LOGOFF && pkt->status == -1) {
 		if (!purple_account_get_remember_password(account))
 			purple_account_set_password(account, NULL);

mercurial