- Timestamp:
- 2015-05-24T18:51:57Z (9 years ago)
- Children:
- 8c3637b
- Parents:
- 2446e4c
- Location:
- protocols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r2446e4c r93e0901 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 30 static const char* account_protocols_local[] = {31 "gg", "whatsapp", NULL32 };33 29 34 30 static char *set_eval_nick_source(set_t *set, char *value); … … 463 459 return a->auto_reconnect_delay; 464 460 } 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 } -
protocols/account.h
r2446e4c r93e0901 58 58 int account_reconnect_delay(account_t *a); 59 59 60 int protocol_account_islocal(const char* protocol);61 62 60 typedef enum { 63 61 ACC_SET_OFFLINE_ONLY = 0x02, /* Allow changes only if the acct is offline. */ … … 69 67 ACC_FLAG_STATUS_MESSAGE = 0x02, /* Supports status messages (without being away). */ 70 68 ACC_FLAG_HANDLE_DOMAINS = 0x04, /* Contact handles need a domain portion. */ 71 ACC_FLAG_LOCAL = 0x08,/* Contact list is local. */69 ACC_FLAG_LOCAL_CONTACTS = 0x08, /* Contact list is local. */ 72 70 } account_flag_t; 73 71 -
protocols/nogaim.c
r2446e4c r93e0901 312 312 } 313 313 314 if (ic->acc->flags & ACC_FLAG_LOCAL ) {314 if (ic->acc->flags & ACC_FLAG_LOCAL_CONTACTS) { 315 315 GHashTableIter nicks; 316 316 gpointer k, v; -
protocols/purple/purple.c
r2446e4c r93e0901 261 261 } 262 262 purple_accounts_remove(pa); 263 264 /* Last, some protocols want their contact lists locally. */ 265 if (strcmp(acc->prpl->name, "whatsapp") == 0 || strcmp(acc->prpl->name, "gg") == 0) { 266 acc->flags |= ACC_FLAG_LOCAL_CONTACTS; 267 } 263 268 } 264 269
Note: See TracChangeset
for help on using the changeset viewer.