changeset 700:d904bf694bd7

[gaim-migrate @ 710] lalala committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 16 Aug 2000 08:20:55 +0000
parents f8acdd22065a
children 8a9e9e694ba4
files src/buddy.c src/conversation.c src/oscar.c
diffstat 3 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Wed Aug 16 07:13:18 2000 +0000
+++ b/src/buddy.c	Wed Aug 16 08:20:55 2000 +0000
@@ -96,6 +96,7 @@
 	if (blist)
 		gtk_widget_destroy(blist);
 	blist=NULL;
+	imchatbox = NULL;
 #ifdef USE_APPLET
 	buddy_created = FALSE;
 #endif
@@ -1205,8 +1206,8 @@
 	}
 	else
 	{
-		show_log_dialog(c);
 		if (c) {
+			show_log_dialog(c);
 			set_state_lock(1);
 			gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(c->log_button), TRUE);
 			set_state_lock(0);
--- a/src/conversation.c	Wed Aug 16 07:13:18 2000 +0000
+++ b/src/conversation.c	Wed Aug 16 08:20:55 2000 +0000
@@ -377,7 +377,7 @@
 				/* FIXME */
 			} else {
 				gdk_input_remove(c->watcher);
-				sprintf(debug_buff, "Closing DirectIM conversation (0x%p)\n", c->conn);
+				sprintf(debug_buff, "Closing DirectIM conversation (%p)\n", c->conn);
 				debug_print(debug_buff);
 				aim_conn_kill(gaim_sess, &c->conn);
 			}
--- a/src/oscar.c	Wed Aug 16 07:13:18 2000 +0000
+++ b/src/oscar.c	Wed Aug 16 08:20:55 2000 +0000
@@ -127,14 +127,8 @@
 					}
 					aim_conn_kill(gaim_sess, &conn);
 				} else if (conn->type = AIM_CONN_TYPE_CHAT) {
-					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"));
-					}
+					/* FIXME: we got disconnected from a chat room, but
+					 * libfaim won't tell us which room */
 				} else if (conn->type == AIM_CONN_TYPE_BOS) {
 					debug_print(_("major connection error\n"));
 					signoff();