Mercurial > pidgin
comparison src/oscar.c @ 1153:3063e6743913
[gaim-migrate @ 1163]
handle the keepalives better. have ICQ force keepalives for connections, it's a bad hack but it's probably necessary for a UDP protocol.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 28 Nov 2000 04:12:06 +0000 |
parents | 22bf2c3ec2e3 |
children | b6b2d26a4e2f |
comparison
equal
deleted
inserted
replaced
1152:201ec77f3a60 | 1153:3063e6743913 |
---|---|
381 aim_request_login(sess, conn, gc->username); | 381 aim_request_login(sess, conn, gc->username); |
382 | 382 |
383 gc->inpa = gdk_input_add(conn->fd, GDK_INPUT_READ | GDK_INPUT_EXCEPTION, | 383 gc->inpa = gdk_input_add(conn->fd, GDK_INPUT_READ | GDK_INPUT_EXCEPTION, |
384 oscar_callback, conn); | 384 oscar_callback, conn); |
385 | 385 |
386 gc->options = user->options; | |
387 save_prefs(); /* is this necessary anymore? */ | |
388 | |
389 debug_print(_("Password sent, waiting for response\n")); | 386 debug_print(_("Password sent, waiting for response\n")); |
390 } | 387 } |
391 | 388 |
392 void oscar_close(struct gaim_connection *gc) { | 389 void oscar_close(struct gaim_connection *gc) { |
393 struct oscar_data *odata = (struct oscar_data *)gc->proto_data; | 390 struct oscar_data *odata = (struct oscar_data *)gc->proto_data; |
1012 debug_print(debug_buff); | 1009 debug_print(debug_buff); |
1013 if (id != 4) | 1010 if (id != 4) |
1014 do_error_dialog(_("Your connection may be lost."), | 1011 do_error_dialog(_("Your connection may be lost."), |
1015 _("AOL error")); | 1012 _("AOL error")); |
1016 | 1013 |
1017 if (gc->keepalive < 0) | |
1018 update_keepalive(gc, gc->keepalive); | |
1019 | |
1020 return 1; | 1014 return 1; |
1021 } | 1015 } |
1022 | 1016 |
1023 int gaim_chatnav_info(struct aim_session_t *sess, | 1017 int gaim_chatnav_info(struct aim_session_t *sess, |
1024 struct command_rx_struct *command, ...) { | 1018 struct command_rx_struct *command, ...) { |