Mercurial > pidgin.yaz
diff libpurple/protocols/qq/login_logout.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 | 44b4e8bd759b |
children | f3cfcbbac3d8 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/login_logout.c Fri Sep 21 01:49:27 2007 +0000 +++ b/libpurple/protocols/qq/login_logout.c Fri Sep 21 02:46:27 2007 +0000 @@ -480,6 +480,8 @@ switch (ret) { case QQ_LOGIN_REPLY_PWD_ERROR: gc->wants_to_die = TRUE; + if (!purple_account_get_remember_password(gc->account)) + purple_account_set_password(gc->account, NULL); purple_connection_error(gc, _("Incorrect password.")); break; case QQ_LOGIN_REPLY_MISC_ERROR: