changeset 10547:82d6760ba000

[gaim-migrate @ 11917] I think some of us agree that this 1. Could break something if a conversation is actually removed 2. Should not be done anyway committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 27 Jan 2005 03:48:25 +0000
parents d9dbaa644390
children 1596ade00664
files src/protocols/silc/silc.c
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/silc/silc.c	Wed Jan 26 23:27:27 2005 +0000
+++ b/src/protocols/silc/silc.c	Thu Jan 27 03:48:25 2005 +0000
@@ -349,19 +349,9 @@
 static void
 silcgaim_close(GaimConnection *gc)
 {
-	GList *l;
-	GaimConversation *conv;
 	SilcGaim sg = gc->proto_data;
-	if (!sg)
-		return;
 
-	/* Close all conversations for this connection */
-	for (l = gaim_get_conversations(); l; l = l->next)
-	{
-		conv = l->data;
-		if (gc == conv->account->gc)
-			gaim_conversation_destroy(conv);
-	}
+	g_return_if_fail(sg != NULL);
 
 	/* Send QUIT */
 	silc_client_command_call(sg->client, sg->conn, NULL,