Mercurial > pidgin
diff src/protocols/oscar/odc.c @ 13608:6c34fbb75bbd
[gaim-migrate @ 15994]
Disconnect the account with a decent error message when there are
problems with an oscar FLAP connection. This needed to be added
after I removed it when rewriting things for non-blocking I/O.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Mon, 10 Apr 2006 03:37:37 +0000 |
| parents | e1c81d199ee0 |
| children | 8a8b4f7f7d99 |
line wrap: on
line diff
--- a/src/protocols/oscar/odc.c Mon Apr 10 02:47:43 2006 +0000 +++ b/src/protocols/oscar/odc.c Mon Apr 10 03:37:37 2006 +0000 @@ -36,30 +36,30 @@ { const gchar *tmp; - if (conn->disconnect_reason == PEER_DISCONNECT_REMOTE_CLOSED) + if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_CLOSED) { - tmp = _("Remote user closed the connection."); + tmp = _("The remote user has closed the connection."); } - else if (conn->disconnect_reason == PEER_DISCONNECT_REMOTE_REFUSED) + else if (conn->disconnect_reason == OSCAR_DISCONNECT_REMOTE_REFUSED) { - tmp = _("Remote user declined your request."); + tmp = _("The remote user has declined your request."); } - else if (conn->disconnect_reason == PEER_DISCONNECT_LOST_CONNECTION) + else if (conn->disconnect_reason == OSCAR_DISCONNECT_LOST_CONNECTION) { - tmp = _("Lost connection with remote user for an unknown reason."); + tmp = _("Lost connection with the remote user for an unknown reason."); } - else if (conn->disconnect_reason == PEER_DISCONNECT_INVALID_DATA) + else if (conn->disconnect_reason == OSCAR_DISCONNECT_INVALID_DATA) { - tmp = _("Received invalid data on connection."); + tmp = _("Received invalid data on connection with remote user."); } - else if (conn->disconnect_reason == PEER_DISCONNECT_COULD_NOT_CONNECT) + else if (conn->disconnect_reason == OSCAR_DISCONNECT_COULD_NOT_CONNECT) { - tmp = _("Could not establish connection with remote user."); + tmp = _("Could not establish a connection with the remote user."); } else /* * We shouldn't print a message for some disconnect_reasons. - * Like PEER_DISCONNECT_LOCAL_CLOSED. + * Like OSCAR_DISCONNECT_LOCAL_CLOSED. */ tmp = NULL; @@ -452,7 +452,7 @@ /* Check if the remote user closed the connection */ if (read == 0) { - peer_connection_destroy(conn, PEER_DISCONNECT_REMOTE_CLOSED); + peer_connection_destroy(conn, OSCAR_DISCONNECT_REMOTE_CLOSED); return; } @@ -462,7 +462,7 @@ /* No worries */ return; - peer_connection_destroy(conn, PEER_DISCONNECT_LOST_CONNECTION); + peer_connection_destroy(conn, OSCAR_DISCONNECT_LOST_CONNECTION); return; } @@ -536,7 +536,7 @@ */ gaim_debug_info("oscar", "Received an incorrect cookie. " "Closing connection.\n"); - peer_connection_destroy(conn, PEER_DISCONNECT_INVALID_DATA); + peer_connection_destroy(conn, OSCAR_DISCONNECT_INVALID_DATA); g_free(frame); return; }
