# HG changeset patch # User Sadrul Habib Chowdhury # Date 1256174485 0 # Node ID e7bb163434c75e901e00abd054dd37f6789a6d60 # Parent 72472238ad4589059bbf74fec19cf370931184a8 Show the message only for the chats for the account signing off. diff -r 72472238ad45 -r e7bb163434c7 finch/gntconv.c --- a/finch/gntconv.c Thu Oct 22 01:19:22 2009 +0000 +++ b/finch/gntconv.c Thu Oct 22 01:21:25 2009 +0000 @@ -371,12 +371,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 " diff -r 72472238ad45 -r e7bb163434c7 pidgin/gtkconv.c --- 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 "