Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/account.c

    r93e0901 r5ebff60  
    2727#include "bitlbee.h"
    2828#include "account.h"
     29
     30static const char* account_protocols_local[] = {
     31        "gg", "whatsapp", NULL
     32};
    2933
    3034static char *set_eval_nick_source(set_t *set, char *value);
     
    459463        return a->auto_reconnect_delay;
    460464}
     465
     466int 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.