Mercurial > pidgin
diff src/oscar.c @ 338:9d258a0aa560
[gaim-migrate @ 348]
Whoa, all kinds of things happened here. The applet looks better. The
preferences dialog changes based on your compile-time options (oscar,
gnome). Whispering works again. libfaim got updated; it can almost do
RVOUS stuff, and hopefully soon can make requests too. The applet doesn't
need to have its sounds go through GNOME, although it still can. There
is code to facilitate SOCKS5 support (all that needs to be done is to
actually write the code to communicate with the proxy server).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 06 Jun 2000 09:55:30 +0000 |
parents | 71be288e7578 |
children | b402a23f35df |
line wrap: on
line diff
--- a/src/oscar.c Tue Jun 06 09:36:12 2000 +0000 +++ b/src/oscar.c Tue Jun 06 09:55:30 2000 +0000 @@ -35,7 +35,7 @@ #include <sys/socket.h> #include <sys/stat.h> #include "gaim.h" -#include <faim/aim.h> +#include <aim.h> #include "gnome_applet_mgr.h" static int inpa = -1; @@ -78,6 +78,8 @@ static int gaim_chat_info_update (struct aim_session_t *, struct command_rx_struct *, ...); static int gaim_chat_incoming_msg(struct aim_session_t *, struct command_rx_struct *, ...); +extern void auth_failed(); + static void oscar_callback(gpointer data, gint source, GdkInputCondition condition) { struct aim_conn_t *conn = (struct aim_conn_t *)data; @@ -87,6 +89,7 @@ hide_login_progress("Disconnected."); aim_logoff(gaim_sess); gdk_input_remove(inpa); + auth_failed(); return; } if (condition & GDK_INPUT_READ) { @@ -95,6 +98,7 @@ signoff(); hide_login_progress("Disconnected."); aim_logoff(gaim_sess); + auth_failed(); gdk_input_remove(inpa); } else { aim_rxdispatch(gaim_sess); @@ -192,8 +196,6 @@ debug_print("Signed off.\n"); } -extern void auth_failed(); - int gaim_parse_auth_resp(struct aim_session_t *sess, struct command_rx_struct *command, ...) { struct aim_conn_t *bosconn = NULL; @@ -225,7 +227,7 @@ set_state(STATE_OFFLINE); hide_login_progress("Authentication Failed"); gdk_input_remove(inpa); - aim_conn_close(command->conn); + aim_conn_kill(sess, &command->conn); auth_failed(); return 0; } @@ -236,7 +238,7 @@ sprintf(debug_buff, "Closing auth connection...\n"); debug_print(debug_buff); gdk_input_remove(inpa); - aim_conn_close(command->conn); + aim_conn_kill(sess, &command->conn); bosconn = aim_newconn(sess, AIM_CONN_TYPE_BOS, sess->logininfo.BOSIP); if (bosconn == NULL) { @@ -245,6 +247,7 @@ #endif set_state(STATE_OFFLINE); hide_login_progress("Internal Error"); + auth_failed(); return -1; } else if (bosconn->status != 0) { #ifdef USE_APPLET @@ -252,6 +255,7 @@ #endif set_state(STATE_OFFLINE); hide_login_progress("Could Not Connect"); + auth_failed(); return -1; } @@ -550,13 +554,14 @@ roominfo->instance, userinfo->sn, msg); - } else if (rendtype == 1) { - /* voice chat */ + } else if (rendtype == AIM_RENDEZVOUS_FILETRANSFER) { + /* libfaim won't tell us that we got this just yet */ + } else if (rendtype == AIM_RENDEZVOUS_FILETRANSFER_GET) { + /* nor will it tell us this. but it's still there */ } else { sprintf(debug_buff, "Unknown rendtype %d\n", rendtype); debug_print(debug_buff); } - /* libfaim doesn't do file transfer yet, from what i can tell */ } return 1; @@ -684,7 +689,7 @@ i++; } } - aim_conn_close(command->conn); + aim_conn_kill(sess, &command->conn); break; default: va_end(ap);