Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/account.c

    r11e7828 r6b13103  
    2929
    3030static const char* account_protocols_local[] = {
    31         "gg", "whatsapp", NULL
     31        "gg", NULL
    3232};
    3333
     
    351351void account_on( bee_t *bee, account_t *a )
    352352{
     353        GHashTableIter nicks;
     354        gpointer k, v;
     355
    353356        if( a->ic )
    354357        {
     
    364367        if( a->ic && !( a->ic->flags & ( OPT_SLOW_LOGIN | OPT_LOGGED_IN ) ) )
    365368                a->ic->keepalive = b_timeout_add( 120000, account_on_timeout, a->ic );
     369
     370        if( a->flags & ACC_FLAG_LOCAL )
     371        {
     372                g_hash_table_iter_init(&nicks, a->nicks);
     373                while( g_hash_table_iter_next( &nicks, &k, &v ) )
     374                {
     375                        a->prpl->add_buddy( a->ic, (char*) k, NULL );
     376                }
     377        }
    366378}
    367379
Note: See TracChangeset for help on using the changeset viewer.