comparison 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
comparison
equal deleted inserted replaced
20588:e23a1585d822 20589:5723dbc6212d
380 { 380 {
381 /* No more FLAP connections! Sign off this PurpleConnection! */ 381 /* No more FLAP connections! Sign off this PurpleConnection! */
382 gchar *tmp; 382 gchar *tmp;
383 if (conn->disconnect_code == 0x0001) { 383 if (conn->disconnect_code == 0x0001) {
384 tmp = g_strdup(_("You have signed on from another location.")); 384 tmp = g_strdup(_("You have signed on from another location."));
385 if (!purple_account_get_remember_password(account))
386 purple_account_set_password(account, NULL);
385 od->gc->wants_to_die = TRUE; 387 od->gc->wants_to_die = TRUE;
386 } else if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED) 388 } else if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED)
387 tmp = g_strdup(_("Server closed the connection.")); 389 tmp = g_strdup(_("Server closed the connection."));
388 else if (conn->disconnect_reason == OSCAR_DISCONNECT_LOST_CONNECTION) 390 else if (conn->disconnect_reason == OSCAR_DISCONNECT_LOST_CONNECTION)
389 tmp = g_strdup_printf(_("Lost connection with server:\n%s"), 391 tmp = g_strdup_printf(_("Lost connection with server:\n%s"),