Mercurial > pidgin.yaz
changeset 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 | ba061949650c |
children | 8ffb65f3c0e9 |
files | libpurple/protocols/oscar/oscar.c libpurple/protocols/yahoo/yahoo.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Sun Nov 11 21:37:39 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Sun Nov 11 21:41:59 2007 +0000 @@ -1344,7 +1344,7 @@ switch (info->errorcode) { case 0x01: /* Unregistered screen name */ - purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED, _("Invalid screen name.")); + purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_INVALID_USERNAME, _("Invalid screen name.")); break; case 0x05: /* Incorrect password */
--- 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); }