Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/account.c

    r93e0901 r9b02bab  
    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);
     
    8488                    strstr(a->user, "@googlemail.com")) {
    8589                        strcpy(tag, "gtalk");
    86                 } else if (strstr(a->user, "@chat.facebook.com")) {
    87                         strcpy(tag, "fb");
    8890                }
    8991        }
     
    459461        return a->auto_reconnect_delay;
    460462}
     463
     464int protocol_account_islocal(const char* protocol)
     465{
     466        const char** p = account_protocols_local;
     467
     468        do {
     469                if (strcmp(*p, protocol) == 0) {
     470                        return 1;
     471                }
     472        } while (*(++p));
     473        return 0;
     474}
Note: See TracChangeset for help on using the changeset viewer.