Mercurial > pidgin
changeset 16771:d7ad8013b914
Fix this spectacularly braindead code. I must've been on the good stuff when I wrote this. Fixes #364.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 02 May 2007 04:42:06 +0000 |
parents | 8a5fe6db7750 |
children | 58904374db06 |
files | finch/gntblist.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntblist.c Wed May 02 03:51:51 2007 +0000 +++ b/finch/gntblist.c Wed May 02 04:42:06 2007 +0000 @@ -112,7 +112,7 @@ static void blist_show(PurpleBuddyList *list); static void update_node_display(PurpleBlistNode *buddy, FinchBlist *ggblist); static void update_buddy_display(PurpleBuddy *buddy, FinchBlist *ggblist); -static void account_signed_on_cb(void); +static void account_signed_on_cb(PurpleConnection *pc, gpointer null); /* Sort functions */ static int blist_node_compare_position(PurpleBlistNode *n1, PurpleBlistNode *n2); @@ -2065,7 +2065,7 @@ } static void -account_signed_on_cb() +account_signed_on_cb(PurpleConnection *pc, gpointer null) { PurpleBlistNode *node; @@ -2073,7 +2073,8 @@ node = purple_blist_node_next(node, FALSE)) { if (PURPLE_BLIST_NODE_IS_CHAT(node)) { PurpleChat *chat = (PurpleChat*)node; - if (purple_blist_node_get_bool(node, "gnt-autojoin")) + if (chat->account == purple_connection_get_account(pc) && + purple_blist_node_get_bool(node, "gnt-autojoin")) serv_join_chat(purple_account_get_connection(chat->account), chat->components); } }