diff pidgin/gtkconv.c @ 28789:e7bb163434c7

Show the message only for the chats for the account signing off.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 22 Oct 2009 01:21:25 +0000
parents 71dc3b5edbe7
children d7c49598cef2 3a055fbe806b e3206d6da6c7 40b523845a6e 585d6f844f79
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Thu Oct 22 01:19:22 2009 +0000
+++ b/pidgin/gtkconv.c	Thu Oct 22 01:21:25 2009 +0000
@@ -7605,12 +7605,14 @@
 account_signing_off(PurpleConnection *gc)
 {
 	GList *list = purple_get_chats();
+	PurpleAccount *account = purple_connection_get_account(gc);
 
 	/* We are about to sign off. See which chats we are currently in, and mark
 	 * them for rejoin on reconnect. */
 	while (list) {
 		PurpleConversation *conv = list->data;
-		if (!purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv))) {
+		if (!purple_conv_chat_has_left(PURPLE_CONV_CHAT(conv)) &&
+				purple_conversation_get_account(conv) == account) {
 			purple_conversation_set_data(conv, "want-to-rejoin", GINT_TO_POINTER(TRUE));
 			purple_conversation_write(conv, NULL, _("The account has disconnected and you are no "
 						"longer in this chat. You will be automatically rejoined in the chat when "