Changeset 5b52a48 for account.c


Ignore:
Timestamp:
2006-07-03T21:22:45Z (18 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
  • account.c

    r911f2eb r5b52a48  
    5858        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
    5959        set_setstr( &a->set, "username", user );
     60       
     61        a->nicks = g_hash_table_new_full( g_str_hash, g_str_equal, g_free, g_free );
    6062       
    6163        /* This function adds some more settings (and might want to do more
     
    126128                        for( a = irc->accounts; a; a = a->next )
    127129                                if( a->prpl == proto &&
    128                                     a->prpl->cmp_buddynames( handle, a->user ) == 0 )
     130                                    a->prpl->handle_cmp( handle, a->user ) == 0 )
    129131                                        ret = a;
    130132                }
     
    190192                                set_del( &a->set, a->set->key );
    191193                       
     194                        g_hash_table_destroy( a->nicks );
     195                       
    192196                        g_free( a->user );
    193197                        g_free( a->pass );
Note: See TracChangeset for help on using the changeset viewer.