comparison src/blist.c @ 8194:22b3974dc1af

[gaim-migrate @ 8916] a bunch of tweaks to jabber roster handling, and a fix for a segfault when you delete the priority buddy in a contact committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 01 Feb 2004 01:06:10 +0000
parents f347c8d25cf5
children 82627be0f420
comparison
equal deleted inserted replaced
8193:e0a70b763872 8194:22b3974dc1af
1088 node->next->prev = node->prev; 1088 node->next->prev = node->prev;
1089 if(cnode->child == node) { 1089 if(cnode->child == node) {
1090 cnode->child = node->next; 1090 cnode->child = node->next;
1091 } 1091 }
1092 1092
1093 if(((GaimContact*)cnode)->priority == buddy) {
1094 gaim_contact_compute_priority_buddy((GaimContact*)cnode);
1095 ops->update(gaimbuddylist, cnode);
1096 }
1093 1097
1094 hb.name = g_strdup(gaim_normalize(buddy->account, buddy->name)); 1098 hb.name = g_strdup(gaim_normalize(buddy->account, buddy->name));
1095 hb.account = buddy->account; 1099 hb.account = buddy->account;
1096 hb.group = ((GaimBlistNode*)buddy)->parent->parent; 1100 hb.group = ((GaimBlistNode*)buddy)->parent->parent;
1097 g_hash_table_remove(gaimbuddylist->buddies, &hb); 1101 g_hash_table_remove(gaimbuddylist->buddies, &hb);