comparison libpurple/protocols/yahoo/yahoo.c @ 20816:efa448405f3d

Remove explicit setting of wants_to_die from prpls.
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 09 Oct 2007 13:42:15 +0000
parents f3cfcbbac3d8
children ba41f2a60253
comparison
equal deleted inserted replaced
20815:7a7b3a425666 20816:efa448405f3d
199 char *name = NULL; 199 char *name = NULL;
200 gboolean unicode = FALSE; 200 gboolean unicode = FALSE;
201 char *message = NULL; 201 char *message = NULL;
202 202
203 if (pkt->service == YAHOO_SERVICE_LOGOFF && pkt->status == -1) { 203 if (pkt->service == YAHOO_SERVICE_LOGOFF && pkt->status == -1) {
204 gc->wants_to_die = TRUE;
205 if (!purple_account_get_remember_password(account)) 204 if (!purple_account_get_remember_password(account))
206 purple_account_set_password(account, NULL); 205 purple_account_set_password(account, NULL);
207 purple_connection_error_reason(gc, PURPLE_REASON_NAME_IN_USE, 206 purple_connection_error_reason(gc, PURPLE_REASON_NAME_IN_USE,
208 _("You have signed on from another location.")); 207 _("You have signed on from another location."));
209 return; 208 return;
2138 if (url) 2137 if (url)
2139 fullmsg = g_strdup_printf("%s\n%s", msg, url); 2138 fullmsg = g_strdup_printf("%s\n%s", msg, url);
2140 else 2139 else
2141 fullmsg = g_strdup(msg); 2140 fullmsg = g_strdup(msg);
2142 2141
2143 gc->wants_to_die = TRUE;
2144 purple_connection_error_reason(gc, PURPLE_REASON_AUTHENTICATION_FAILED, fullmsg); 2142 purple_connection_error_reason(gc, PURPLE_REASON_AUTHENTICATION_FAILED, fullmsg);
2145 g_free(msg); 2143 g_free(msg);
2146 g_free(fullmsg); 2144 g_free(fullmsg);
2147 } 2145 }
2148 2146