Mercurial > pidgin
diff libpurple/protocols/msn/session.c @ 20589:5723dbc6212d
Clear the password consistently when we get a "Signed-On elsewhere" or a "Invalid Password" disconnection. Disconnection reason codes will take care of this in the core, but until then, this is ok. Fixes #3204.
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Fri, 21 Sep 2007 02:46:27 +0000 |
| parents | 723b5a2f91ce |
| children | 5beeb2e546c2 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c Fri Sep 21 01:49:27 2007 +0000 +++ b/libpurple/protocols/msn/session.c Fri Sep 21 02:46:27 2007 +0000 @@ -269,7 +269,7 @@ /* The core used to use msn_add_buddy to add all buddies before * being logged in. This no longer happens, so we manually iterate - * over the whole buddy list to identify sync issues. + * over the whole buddy list to identify sync issues. */ for (gnode = purple_get_blist()->root; gnode; gnode = gnode->next) { PurpleGroup *group = (PurpleGroup *)gnode; @@ -342,6 +342,8 @@ case MSN_ERROR_SIGN_OTHER: gc->wants_to_die = TRUE; msg = g_strdup(_("You have signed on from another location.")); + if (!purple_account_get_remember_password(session->account)) + purple_account_set_password(session->account, NULL); break; case MSN_ERROR_SERV_UNAVAILABLE: msg = g_strdup(_("The MSN servers are temporarily "
