diff src/oscar.c @ 694:150214f1d48b

[gaim-migrate @ 704] bah. oscar sucks a fat one. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 16 Aug 2000 01:53:59 +0000
parents 30a8e386849d
children d3db515e9a6e
line wrap: on
line diff
--- a/src/oscar.c	Wed Aug 16 01:10:22 2000 +0000
+++ b/src/oscar.c	Wed Aug 16 01:53:59 2000 +0000
@@ -125,17 +125,21 @@
 					if (cnv) {
 						make_direct(cnv, FALSE, NULL, 0);
 					}
+					aim_conn_kill(gaim_sess, &conn);
 				} else if (conn->type = AIM_CONN_TYPE_CHAT) {
-					/* FIXME! we got kicked out of chat */
-				}
-				aim_conn_kill(gaim_sess, &conn);
-				if (!aim_getconn_type(gaim_sess, AIM_CONN_TYPE_BOS)) {
+					struct chat_connection *c = find_oscar_chat(conn->priv);
+					if (c) {
+						struct conversation *cnv = find_chat(c->name);
+						char closebuf[128];
+						close_callback(NULL, cnv);
+						sprintf(closebuf, _("You have been disconnected from %s"), cnv->name);
+						do_error_dialog(closebuf, _("Disconnected"));
+					}
+				} else if (conn->type == AIM_CONN_TYPE_BOS) {
 					debug_print(_("major connection error\n"));
 					signoff();
 					hide_login_progress(_("Disconnected."));
-					aim_logoff(gaim_sess);
 					auth_failed();
-					gdk_input_remove(inpa);
 				}
 			}
 		}