Changeset 1783ab6 for storage_xml.c


Ignore:
Timestamp:
2014-07-24T03:51:07Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
269580c
Parents:
757515a
Message:

Gadugadu local contact storage (ticket #917)

Patch originally by Michał Siejak, adapted for 3.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • storage_xml.c

    r757515a r1783ab6  
    8787        char *pass_b64 = NULL;
    8888        unsigned char *pass_cr = NULL;
    89         int pass_len;
     89        int pass_len, local = 0;
    9090        struct prpl *prpl = NULL;
    9191        account_t *acc;
     
    100100        protocol = xt_find_attr( node, "protocol" );
    101101        if( protocol )
     102        {
    102103                prpl = find_protocol( protocol );
     104                local = protocol_account_islocal( protocol );
     105        }
    103106       
    104107        if( !handle || !pass_b64 || !protocol || !prpl )
     
    114117                if( tag )
    115118                        set_setstr( &acc->set, "tag", tag );
     119                if( local )
     120                        acc->flags |= ACC_FLAG_LOCAL;
    116121        }
    117122        else
Note: See TracChangeset for help on using the changeset viewer.