Changeset 93e0901
- Timestamp:
- 2015-05-24T18:51:57Z (10 years ago)
- Children:
- 8c3637b
- Parents:
- 2446e4c
- Files:
-
- 5 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 -
storage_xml.c
r2446e4c r93e0901 89 89 char *pass_b64 = NULL; 90 90 unsigned char *pass_cr = NULL; 91 int pass_len , local = 0;91 int pass_len; 92 92 struct prpl *prpl = NULL; 93 93 account_t *acc; … … 107 107 return XT_ABORT; 108 108 } 109 local = protocol_account_islocal(protocol);110 109 } 111 110 … … 123 122 if (tag) { 124 123 set_setstr(&acc->set, "tag", tag); 125 }126 if (local) {127 acc->flags |= ACC_FLAG_LOCAL;128 124 } 129 125 } else {
Note: See TracChangeset
for help on using the changeset viewer.