diff src/server.c @ 1063:e1408fb04c36

[gaim-migrate @ 1073] updated HACKING to describe gaim_connection/aim_user/prpl. updated FAQ to answer some questions about multiple connections. made it so you're not able to send a message in a chat room that you're no longer in (i.e. when you were in the room but sign off) free'd the buddy list when the connection is destroyed tried to prevent set_buddy from being called before the buddy list is drawn i think there was something else committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 04 Nov 2000 03:08:54 +0000
parents d50d3abb9eb7
children ed28707debdc
line wrap: on
line diff
--- a/src/server.c	Sat Nov 04 00:21:33 2000 +0000
+++ b/src/server.c	Sat Nov 04 03:08:54 2000 +0000
@@ -57,6 +57,15 @@
 
 void serv_close(struct gaim_connection *gc)
 {
+	GSList *bcs = gc->buddy_chats;
+	struct conversation *b;
+	while (bcs) {
+		b = (struct conversation *)bcs->data;
+		gc->buddy_chats = g_slist_remove(gc->buddy_chats, b);
+		b->gc = NULL;
+		bcs = gc->buddy_chats;
+	}
+
 	if (gc->idle_timer > 0)
 		gtk_timeout_remove(gc->idle_timer);
         gc->idle_timer = -1;