- Timestamp:
- 2010-07-17T12:08:31Z (14 years ago)
- Branches:
- master
- Children:
- a91550c
- Parents:
- d0527c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
rd0527c1 ra08e875 644 644 }; 645 645 646 static void prplcb_blist_new( PurpleBlistNode *node ) 647 { 648 PurpleBuddy *bud = (PurpleBuddy*) node; 649 646 static void prplcb_blist_update( PurpleBuddyList *list, PurpleBlistNode *node ) 647 { 650 648 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 651 649 { 652 struct im_connection *ic = purple_ic_by_pa( bud->account ); 653 654 if( ic == NULL ) 655 return; 656 657 imcb_add_buddy( ic, bud->name, NULL ); 658 if( bud->server_alias ) 659 { 660 imcb_rename_buddy( ic, bud->name, bud->server_alias ); 661 imcb_buddy_nick_hint( ic, bud->name, bud->server_alias ); 662 } 663 } 664 } 665 666 static void prplcb_blist_update( PurpleBuddyList *list, PurpleBlistNode *node ) 667 { 668 PurpleBuddy *bud = (PurpleBuddy*) node; 669 670 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 671 { 650 PurpleBuddy *bud = (PurpleBuddy*) node; 651 PurpleGroup *group = purple_buddy_get_group( bud ); 672 652 struct im_connection *ic = purple_ic_by_pa( bud->account ); 673 653 PurpleStatus *as; … … 680 660 imcb_rename_buddy( ic, bud->name, bud->server_alias ); 681 661 662 if( group ) 663 imcb_add_buddy( ic, bud->name, purple_group_get_name( group ) ); 664 682 665 flags |= purple_presence_is_online( bud->presence ) ? OPT_LOGGED_IN : 0; 683 666 flags |= purple_presence_is_available( bud->presence ) ? 0 : OPT_AWAY; … … 691 674 purple_presence_get_login_time( bud->presence ), 692 675 purple_presence_get_idle_time( bud->presence ) ); 676 } 677 } 678 679 static void prplcb_blist_new( PurpleBlistNode *node ) 680 { 681 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 682 { 683 PurpleBuddy *bud = (PurpleBuddy*) node; 684 struct im_connection *ic = purple_ic_by_pa( bud->account ); 685 686 if( ic == NULL ) 687 return; 688 689 imcb_add_buddy( ic, bud->name, NULL ); 690 691 prplcb_blist_update( NULL, node ); 693 692 } 694 693 }
Note: See TracChangeset
for help on using the changeset viewer.