Mercurial > pidgin
diff libpurple/protocols/yahoo/yahoo.c @ 21425:cd4173014f50
Use PURPLE_CONNECTION_ERROR_INVALID_USERNAME in oscar and yahoo, which were
the only places I could find where it could be used.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 11 Nov 2007 21:41:59 +0000 |
parents | 38cc722159ff |
children | 9dbf38f270da |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c Sun Nov 11 21:37:39 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Sun Nov 11 21:41:59 2007 +0000 @@ -2090,6 +2090,7 @@ char *url = NULL; char *fullmsg; PurpleAccount *account = gc->account; + PurpleConnectionError reason = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED; while (l) { struct yahoo_pair *pair = l->data; @@ -2105,6 +2106,7 @@ switch (err) { case 3: msg = g_strdup(_("Invalid screen name.")); + reason = PURPLE_CONNECTION_ERROR_INVALID_USERNAME; break; case 13: #ifdef TRY_WEBMESSENGER_LOGIN @@ -2139,7 +2141,7 @@ else fullmsg = g_strdup(msg); - purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, fullmsg); + purple_connection_error_reason(gc, reason, fullmsg); g_free(msg); g_free(fullmsg); }