Mercurial > pidgin
diff src/oscar.c @ 1106:5bc8fdacd2cb
[gaim-migrate @ 1116]
lots of changes.
buddy.c: just in general tried to get things to work better. moving things in the edit list window and signing off should be handled better in the main buddy list window (watch out for flashes).
gaim.h: removed toc-specific things and moved them to toc.c and rvous.c as needed.
gtkhtml.c: possible fix for AOL 6.0 problems (I wasn't able to reproduce the problem before or after the fix, but i fixed what i think might have been causing the problem).
multi.c: moved LOGIN_STEPS from gaim.h here and actually use it now
oscar.c: moved an oscar-specific struct definition from gaim.h here and also handle problems better
perl.c: fix for stupid problem
rvous.c: first pass at attempt to be able to remove toc.c and rvous.c (though this will never happen; gaim will support toc as long as aol does) without cruft. gaim is now only dependent on toc.c and rvous.c for toc_build_config and parse_toc_buddy_list, which gaim needs to save and read its buddy list.
toc.c: rewrote the signin process so that the read()'s won't block. it's not actually a non-blocking read; it's just that it won't ever get to the read until there's data to be read (thanks to the gdk_input watcher). this means the cancel button should work after it's connected, but it's still not a non-blocking connect.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 20 Nov 2000 07:24:18 +0000 |
parents | f168625b63fe |
children | c61f9c384413 |
line wrap: on
line diff
--- a/src/oscar.c Sun Nov 19 10:01:53 2000 +0000 +++ b/src/oscar.c Mon Nov 20 07:24:18 2000 +0000 @@ -72,6 +72,13 @@ GSList *direct_ims; }; +struct chat_connection { + char *name; + int fd; /* this is redundant since we have the conn below */ + struct aim_conn_t *conn; + int inpa; +}; + struct direct_im { struct gaim_connection *gc; char name[80]; @@ -351,7 +358,7 @@ if (conn == NULL) { debug_print(_("internal connection error\n")); hide_login_progress(gc, _("Unable to login to AIM")); - serv_close(gc); + signoff(gc); return; } else if (conn->fd == -1) { if (conn->status & AIM_CONN_STATUS_RESOLVERR) { @@ -363,7 +370,7 @@ debug_print(debug_buff); debug_print("\n"); hide_login_progress(gc, debug_buff); } - serv_close(gc); + signoff(gc); return; } g_snprintf(buf, sizeof(buf), _("Signon: %s"), gc->username); @@ -467,14 +474,14 @@ set_user_state(offline); #endif hide_login_progress(gc, _("Internal Error")); - serv_close(gc); + signoff(gc); return -1; } else if (bosconn->status & AIM_CONN_STATUS_CONNERR) { #ifdef USE_APPLET set_user_state(offline); #endif hide_login_progress(gc, _("Could Not Connect")); - serv_close(gc); + signoff(gc); return -1; }