Changeset 3e69802


Ignore:
Timestamp:
2010-04-13T12:51:05Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3bd4a93
Parents:
ec2ebcc
Message:

Use full name information of Twitter buddies.

Location:
protocols/twitter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    rec2ebcc r3e69802  
    3434{
    3535        struct im_connection *ic = data;
     36       
    3637        // Check if we are still logged in...
    3738        // We are logged in if the flag says so and the connection is still in the connections list.
  • protocols/twitter/twitter_lib.c

    rec2ebcc r3e69802  
    9898 * Add a buddy if it is not allready added, set the status to logged in.
    9999 */
    100 static void twitter_add_buddy(struct im_connection *ic, char *name)
     100static void twitter_add_buddy(struct im_connection *ic, char *name, const char *fullname)
    101101{
    102102        struct twitter_data *td = ic->proto_data;
     
    107107                // The buddy is not in the list, add the buddy and set the status to logged in.
    108108                imcb_add_buddy( ic, name, NULL );
     109                imcb_rename_buddy( ic, name, fullname );
    109110                if (set_getbool( &ic->acc->set, "use_groupchat" ))
    110111                        imcb_chat_add_buddy( td->home_timeline_gc, name );
     
    422423        {
    423424                status = l->data;
    424                 twitter_add_buddy(ic, status->user->screen_name);
     425                twitter_add_buddy(ic, status->user->screen_name, status->user->name);
    425426               
    426427                // Say it!
     
    537538        {
    538539                user = l->data;
    539                 twitter_add_buddy(ic, user->screen_name);
     540                twitter_add_buddy(ic, user->screen_name, user->name);
    540541        }
    541542
Note: See TracChangeset for help on using the changeset viewer.