Changes in protocols/account.c [93e0901:9b02bab]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r93e0901 r9b02bab 27 27 #include "bitlbee.h" 28 28 #include "account.h" 29 30 static const char* account_protocols_local[] = { 31 "gg", "whatsapp", NULL 32 }; 29 33 30 34 static char *set_eval_nick_source(set_t *set, char *value); … … 84 88 strstr(a->user, "@googlemail.com")) { 85 89 strcpy(tag, "gtalk"); 86 } else if (strstr(a->user, "@chat.facebook.com")) {87 strcpy(tag, "fb");88 90 } 89 91 } … … 459 461 return a->auto_reconnect_delay; 460 462 } 463 464 int 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.