Ignore:
Timestamp:
2015-05-24T18:51:57Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
8c3637b
Parents:
2446e4c
Message:

ACC_FLAG_LOCAL -> ACC_FLAG_LOCAL_CONTACTS.

Also, handle the flag more properly. The config loader was not the right
place to do this in.

Next up: Add a way for a protocol module to fetch the contact list
pre-login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/account.c

    r2446e4c r93e0901  
    2727#include "bitlbee.h"
    2828#include "account.h"
    29 
    30 static const char* account_protocols_local[] = {
    31         "gg", "whatsapp", NULL
    32 };
    3329
    3430static char *set_eval_nick_source(set_t *set, char *value);
     
    463459        return a->auto_reconnect_delay;
    464460}
    465 
    466 int protocol_account_islocal(const char* protocol)
    467 {
    468         const char** p = account_protocols_local;
    469 
    470         do {
    471                 if (strcmp(*p, protocol) == 0) {
    472                         return 1;
    473                 }
    474         } while (*(++p));
    475         return 0;
    476 }
Note: See TracChangeset for help on using the changeset viewer.