Mercurial > pidgin
comparison finch/gntblist.c @ 18428:1dbd8ce2f11f
Fix a bug where buddies from offline accounts were showing up.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 03 Jul 2007 15:56:24 +0000 |
parents | 2d4df5ef0090 |
children | ecb223f9f75b dd115c8f0880 |
comparison
equal
deleted
inserted
replaced
18427:be8c4eba38f6 | 18428:1dbd8ce2f11f |
---|---|
586 add_buddy(PurpleBuddy *buddy, FinchBlist *ggblist) | 586 add_buddy(PurpleBuddy *buddy, FinchBlist *ggblist) |
587 { | 587 { |
588 PurpleContact *contact; | 588 PurpleContact *contact; |
589 PurpleBlistNode *node = (PurpleBlistNode *)buddy; | 589 PurpleBlistNode *node = (PurpleBlistNode *)buddy; |
590 if (node->ui_data) | 590 if (node->ui_data) |
591 return; | |
592 | |
593 if (!purple_account_is_connected(buddy->account)) | |
591 return; | 594 return; |
592 | 595 |
593 contact = (PurpleContact*)node->parent; | 596 contact = (PurpleContact*)node->parent; |
594 if (!contact) /* When a new buddy is added and show-offline is set */ | 597 if (!contact) /* When a new buddy is added and show-offline is set */ |
595 return; | 598 return; |
2133 static void sort_blist_change_cb(GntMenuItem *item, gpointer n) | 2136 static void sort_blist_change_cb(GntMenuItem *item, gpointer n) |
2134 { | 2137 { |
2135 purple_prefs_set_string(PREF_ROOT "/sort_type", n); | 2138 purple_prefs_set_string(PREF_ROOT "/sort_type", n); |
2136 } | 2139 } |
2137 | 2140 |
2138 /* XXX: send_im_select* -- Xerox */ | 2141 /* send_im_select* -- Xerox */ |
2139 static void | 2142 static void |
2140 send_im_select_cb(gpointer data, PurpleRequestFields *fields) | 2143 send_im_select_cb(gpointer data, PurpleRequestFields *fields) |
2141 { | 2144 { |
2142 PurpleAccount *account; | 2145 PurpleAccount *account; |
2143 const char *username; | 2146 const char *username; |