Ignore:
Timestamp:
2010-07-17T15:06:56Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5c18a76
Parents:
0d691ea
Message:

When using non-Twitter Twitter API services, prefix the channel and contact
name with that service name, not always Twitter. This is especially useful
when having multiple accounts on different sites with the same username.

Also adding an "identica" protocol entry for convenience.

Based on a patch from kensanata, bug #648.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r0d691ea rffcdf13  
    459459        td->home_timeline_gc = gc = imcb_chat_new( ic, "home/timeline" );
    460460       
    461         name_hint = g_strdup_printf( "Twitter_%s", ic->acc->user );
     461        name_hint = g_strdup_printf( "%s_%s", td->prefix, ic->acc->user );
    462462        imcb_chat_name_hint( gc, name_hint );
    463463        g_free( name_hint );
     
    519519        if( mode_one )
    520520        {
    521                 g_snprintf( from, sizeof( from ) - 1, "twitter_%s", ic->acc->user );
     521                g_snprintf( from, sizeof( from ) - 1, "%s_%s", td->prefix, ic->acc->user );
    522522                from[MAX_STRING-1] = '\0';
    523523        }
Note: See TracChangeset for help on using the changeset viewer.