Mercurial > pidgin
diff libpurple/protocols/qq/sendqueue.c @ 20126:5eb52c076a2f
Add disconnection reasons to qq
| author | Will Thompson <will.thompson@collabora.co.uk> |
|---|---|
| date | Tue, 02 Oct 2007 00:27:50 +0000 |
| parents | 44b4e8bd759b |
| children | ba41f2a60253 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/sendqueue.c Tue Oct 02 00:14:12 2007 +0000 +++ b/libpurple/protocols/qq/sendqueue.c Tue Oct 02 00:27:50 2007 +0000 @@ -120,7 +120,8 @@ case QQ_CMD_KEEP_ALIVE: if (qd->logged_in) { purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Connection lost!\n"); - purple_connection_error(gc, _("Connection lost")); + purple_connection_error_reason(gc, + PURPLE_REASON_NETWORK_ERROR, _("Connection lost")); qd->logged_in = FALSE; } p->resend_times = -1; @@ -128,7 +129,8 @@ case QQ_CMD_LOGIN: case QQ_CMD_REQUEST_LOGIN_TOKEN: if (!qd->logged_in) /* cancel login progress */ - purple_connection_error(gc, _("Login failed, no reply")); + purple_connection_error_reason(gc, + PURPLE_REASON_NETWORK_ERROR, _("Login failed, no reply")); p->resend_times = -1; break; default:{
