comparison src/blist.c @ 11624:45d54425dc65

[gaim-migrate @ 13899] Fix the bug where new buddies were showing up as groups sometimes, silence a few g_log warnings, and make it so that if you add and then remove a user on MSN without signing off and on in between the user is actually removed from the server list committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 08 Oct 2005 16:08:51 +0000
parents 8d0a2b6c192b
children eb14bbcf7249
comparison
equal deleted inserted replaced
11623:fd74e7b67682 11624:45d54425dc65
1087 buddy = g_new0(GaimBuddy, 1); 1087 buddy = g_new0(GaimBuddy, 1);
1088 buddy->account = account; 1088 buddy->account = account;
1089 buddy->name = g_strdup(screenname); 1089 buddy->name = g_strdup(screenname);
1090 buddy->alias = g_strdup(alias); 1090 buddy->alias = g_strdup(alias);
1091 buddy->presence = gaim_presence_new_for_buddy(buddy); 1091 buddy->presence = gaim_presence_new_for_buddy(buddy);
1092 ((GaimBlistNode *)buddy)->type = GAIM_BLIST_BUDDY_NODE;
1092 1093
1093 gaim_presence_set_status_active(buddy->presence, "offline", TRUE); 1094 gaim_presence_set_status_active(buddy->presence, "offline", TRUE);
1094 1095
1095 gaim_blist_node_initialize_settings((GaimBlistNode *)buddy); 1096 gaim_blist_node_initialize_settings((GaimBlistNode *)buddy);
1096 ((GaimBlistNode *)buddy)->type = GAIM_BLIST_BUDDY_NODE;
1097 1097
1098 if (ops && ops->new_node) 1098 if (ops && ops->new_node)
1099 ops->new_node((GaimBlistNode *)buddy); 1099 ops->new_node((GaimBlistNode *)buddy);
1100 1100
1101 GAIM_DBUS_REGISTER_POINTER(buddy, GaimBuddy); 1101 GAIM_DBUS_REGISTER_POINTER(buddy, GaimBuddy);