Mercurial > pidgin.yaz
diff src/oscar.c @ 747:eec93c5929b9
[gaim-migrate @ 757]
minor changes
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 23 Aug 2000 05:43:46 +0000 |
parents | 5a908dd5cfc4 |
children | 72e556f6b99d |
line wrap: on
line diff
--- a/src/oscar.c Wed Aug 23 04:14:47 2000 +0000 +++ b/src/oscar.c Wed Aug 23 05:43:46 2000 +0000 @@ -71,7 +71,6 @@ } static int gaim_parse_auth_resp (struct aim_session_t *, struct command_rx_struct *, ...); -static int gaim_auth_server_ready(struct aim_session_t *, struct command_rx_struct *, ...); static int gaim_parse_login (struct aim_session_t *, struct command_rx_struct *, ...); static int gaim_server_ready (struct aim_session_t *, struct command_rx_struct *, ...); static int gaim_handle_redirect (struct aim_session_t *, struct command_rx_struct *, ...); @@ -130,7 +129,7 @@ signoff(); hide_login_progress(_("Disconnected.")); auth_failed(); - } else if (conn->type = AIM_CONN_TYPE_CHAT) { + } else if (conn->type == AIM_CONN_TYPE_CHAT) { /* FIXME: we got disconnected from a chat room, but * libfaim won't tell us which room */ debug_print("connection error for chat...\n"); @@ -196,15 +195,6 @@ aim_conn_addhandler(sess, conn, 0x0017, 0x0003, gaim_parse_auth_resp, 0); aim_sendconnack(sess, conn); aim_request_login(sess, conn, username); -/* - aim_conn_addhandler(sess, conn, AIM_CB_FAM_SPECIAL, - AIM_CB_SPECIAL_AUTHSUCCESS, - gaim_parse_auth_resp, 0); - aim_conn_addhandler(sess, conn, AIM_CB_FAM_GEN, - AIM_CB_GEN_SERVERREADY, - gaim_auth_server_ready, 0); - aim_send_login(sess, conn, username, password, &info); -*/ inpa = gdk_input_add(conn->fd, GDK_INPUT_READ | GDK_INPUT_EXCEPTION, oscar_callback, conn); @@ -333,25 +323,6 @@ return 1; } -gboolean change_password = FALSE; -char *old_password; -char *new_password; - -int gaim_auth_server_ready(struct aim_session_t *sess, - struct command_rx_struct *command, ...) { - debug_print("Authorization server is ready.\n"); - aim_auth_clientready(sess, command->conn); - if (change_password) { - debug_print("Changing passwords...\n"); - aim_auth_changepasswd(sess, command->conn, old_password, - new_password); - g_free(old_password); - g_free(new_password); - change_password = FALSE; - } - return 1; -} - int gaim_parse_login(struct aim_session_t *sess, struct command_rx_struct *command, ...) { struct client_info_s info = {"AOL Instant Messenger (TM), version 2.1.1187/WIN32", 4, 30, 3141, "us", "en", 0x0004, 0x0001, 0x055}; @@ -364,6 +335,7 @@ aim_send_login(sess, command->conn, current_user->username, current_user->password, &info, key); + return 1; } int gaim_server_ready(struct aim_session_t *sess,