diff libpurple/protocols/oscar/flap_connection.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 35b4f1dc4c8d
line wrap: on
line diff
--- a/libpurple/protocols/oscar/flap_connection.c	Fri Sep 21 01:49:27 2007 +0000
+++ b/libpurple/protocols/oscar/flap_connection.c	Fri Sep 21 02:46:27 2007 +0000
@@ -382,6 +382,8 @@
 		gchar *tmp;
 		if (conn->disconnect_code == 0x0001) {
 			tmp = g_strdup(_("You have signed on from another location."));
+			if (!purple_account_get_remember_password(account))
+				purple_account_set_password(account, NULL);
 			od->gc->wants_to_die = TRUE;
 		} else if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED)
 			tmp = g_strdup(_("Server closed the connection."));