comparison libpurple/protocols/jabber/buddy.c @ 18124:f88c2a41200d

fix inital presence (fixes #1395)
author Nathan Walp <nwalp@pidgin.im>
date Sun, 17 Jun 2007 04:50:18 +0000
parents 830c0cc9b9d4
children 703872bf33c6
comparison
equal deleted inserted replaced
18123:ca965dfd3875 18124:f88c2a41200d
441 } 441 }
442 } 442 }
443 443
444 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img) 444 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img)
445 { 445 {
446 PurplePresence *gpresence;
447 PurpleStatus *status;
448
449 jabber_set_info(gc, purple_account_get_user_info(gc->account)); 446 jabber_set_info(gc, purple_account_get_user_info(gc->account));
450 447
451 gpresence = purple_account_get_presence(gc->account); 448 jabber_presence_send(gc->account, NULL);
452 status = purple_presence_get_active_status(gpresence);
453 jabber_presence_send(gc->account, status);
454 } 449 }
455 450
456 /* 451 /*
457 * This is the callback from the "ok clicked" for "set vCard" 452 * This is the callback from the "ok clicked" for "set vCard"
458 * 453 *