Changeset 5b52a48 for protocols/nogaim.c


Ignore:
Timestamp:
2006-07-03T21:22:45Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7e3592e
Parents:
911f2eb
Message:

Implemented per-account nick lists instead of per-protocol nick lists.
nick_t is dead, instead nicks are just saves in a per-account_t GLib
hash table. While doing this, the import_buddies command finally died
and text_save() disappeared, because the old file format can't handle
most of the new features in this branch anyway.

Still have to implement support for the new nick lists in text_load()!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r911f2eb r5b52a48  
    366366       
    367367        memset( nick, 0, MAX_NICK_LENGTH + 1 );
    368         strcpy( nick, nick_get( gc->irc, handle, gc->acc->prpl, realname ) );
     368        strcpy( nick, nick_get( gc->acc, handle, realname ) );
    369369       
    370370        u = user_add( gc->irc, nick );
     
    378378                u->user = g_strndup( handle, s - handle );
    379379        }
    380         else if( *gc->acc->server )
     380        else if( gc->acc->server )
    381381        {
    382382                char *colon;
     
    778778       
    779779        /* It might be yourself! */
    780         if( b->gc->acc->prpl->cmp_buddynames( handle, b->gc->username ) == 0 )
     780        if( b->gc->acc->prpl->handle_cmp( handle, b->gc->username ) == 0 )
    781781        {
    782782                u = user_find( b->gc->irc, b->gc->irc->nick );
     
    10621062void bim_add_allow( struct gaim_connection *gc, char *handle )
    10631063{
    1064         if( g_slist_find_custom( gc->permit, handle, (GCompareFunc) gc->acc->prpl->cmp_buddynames ) == NULL )
     1064        if( g_slist_find_custom( gc->permit, handle, (GCompareFunc) gc->acc->prpl->handle_cmp ) == NULL )
    10651065        {
    10661066                gc->permit = g_slist_prepend( gc->permit, g_strdup( handle ) );
     
    10741074        GSList *l;
    10751075       
    1076         if( ( l = g_slist_find_custom( gc->permit, handle, (GCompareFunc) gc->acc->prpl->cmp_buddynames ) ) )
     1076        if( ( l = g_slist_find_custom( gc->permit, handle, (GCompareFunc) gc->acc->prpl->handle_cmp ) ) )
    10771077        {
    10781078                g_free( l->data );
     
    10851085void bim_add_block( struct gaim_connection *gc, char *handle )
    10861086{
    1087         if( g_slist_find_custom( gc->deny, handle, (GCompareFunc) gc->acc->prpl->cmp_buddynames ) == NULL )
     1087        if( g_slist_find_custom( gc->deny, handle, (GCompareFunc) gc->acc->prpl->handle_cmp ) == NULL )
    10881088        {
    10891089                gc->deny = g_slist_prepend( gc->deny, g_strdup( handle ) );
     
    10971097        GSList *l;
    10981098       
    1099         if( ( l = g_slist_find_custom( gc->deny, handle, (GCompareFunc) gc->acc->prpl->cmp_buddynames ) ) )
     1099        if( ( l = g_slist_find_custom( gc->deny, handle, (GCompareFunc) gc->acc->prpl->handle_cmp ) ) )
    11001100        {
    11011101                g_free( l->data );
Note: See TracChangeset for help on using the changeset viewer.