diff 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
line wrap: on
line diff
--- a/src/blist.c	Sat Oct 08 14:33:52 2005 +0000
+++ b/src/blist.c	Sat Oct 08 16:08:51 2005 +0000
@@ -1089,11 +1089,11 @@
 	buddy->name     = g_strdup(screenname);
 	buddy->alias    = g_strdup(alias);
 	buddy->presence = gaim_presence_new_for_buddy(buddy);
+	((GaimBlistNode *)buddy)->type = GAIM_BLIST_BUDDY_NODE;
 
 	gaim_presence_set_status_active(buddy->presence, "offline", TRUE);
 
 	gaim_blist_node_initialize_settings((GaimBlistNode *)buddy);
-	((GaimBlistNode *)buddy)->type = GAIM_BLIST_BUDDY_NODE;
 
 	if (ops && ops->new_node)
 		ops->new_node((GaimBlistNode *)buddy);