Mercurial > pidgin
comparison libpurple/protocols/bonjour/jabber.c @ 21007:d55617a15301
don't assume </stream:stream> means the conversation window is closed. Fixes #3690
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 25 Oct 2007 18:51:39 +0000 |
parents | 04fe5601fedb |
children | 8b74b226e023 |
comparison
equal
deleted
inserted
replaced
21006:f43d7aafe1f8 | 21007:d55617a15301 |
---|---|
373 | 373 |
374 g_return_if_fail(bb != NULL); | 374 g_return_if_fail(bb != NULL); |
375 | 375 |
376 /* Inform the user that the conversation has been closed */ | 376 /* Inform the user that the conversation has been closed */ |
377 if (bb->conversation != NULL) { | 377 if (bb->conversation != NULL) { |
378 #if 0 | |
378 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, pb->name, pb->account); | 379 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, pb->name, pb->account); |
379 if (conv != NULL) { | 380 if (conv != NULL) { |
380 char *tmp = g_strdup_printf(_("%s has closed the conversation."), pb->name); | 381 char *tmp = g_strdup_printf(_("%s has closed the conversation."), pb->name); |
381 purple_conversation_write(conv, NULL, tmp, PURPLE_MESSAGE_SYSTEM, time(NULL)); | 382 purple_conversation_write(conv, NULL, tmp, PURPLE_MESSAGE_SYSTEM, time(NULL)); |
382 g_free(tmp); | 383 g_free(tmp); |
383 } | 384 } |
385 #endif | |
384 /* Close the socket, clear the watcher and free memory */ | 386 /* Close the socket, clear the watcher and free memory */ |
385 bonjour_jabber_close_conversation(bb->conversation); | 387 bonjour_jabber_close_conversation(bb->conversation); |
386 bb->conversation = NULL; | 388 bb->conversation = NULL; |
387 } | 389 } |
388 | 390 |