Changeset 11e7828 for protocols/nogaim.c


Ignore:
Timestamp:
2015-01-26T02:43:35Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
5eab298f
Parents:
fcb2c2e
git-author:
dequis <dx@…> (23-01-15 06:29:00)
git-committer:
dequis <dx@…> (26-01-15 02:43:35)
Message:

Fix whatsapp local contact lists

Had to move the code that adds contacts to imcb_connected to avoid
dereferencing a null im_connection.

Turns out this kind of local contact lists only applies to renamed
contacts, though. It doesn't deal with libpurple's blist.xml at all
(it could, there are APIs for it since 2.6.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rfcb2c2e r11e7828  
    294294        if( ic->flags & OPT_LOGGED_IN )
    295295                return;
     296
     297        if( ic->acc->flags & ACC_FLAG_LOCAL )
     298        {
     299                GHashTableIter nicks;
     300                gpointer k, v;
     301                g_hash_table_iter_init( &nicks, ic->acc->nicks );
     302                while( g_hash_table_iter_next( &nicks, &k, &v ) )
     303                {
     304                        ic->acc->prpl->add_buddy( ic, (char*) k, NULL );
     305                }
     306        }
    296307       
    297308        imcb_log( ic, "Logged in" );
Note: See TracChangeset for help on using the changeset viewer.