Changes in protocols/account.c [9b02bab:93e0901]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
r9b02bab 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); … … 88 84 strstr(a->user, "@googlemail.com")) { 89 85 strcpy(tag, "gtalk"); 86 } else if (strstr(a->user, "@chat.facebook.com")) { 87 strcpy(tag, "fb"); 90 88 } 91 89 } … … 461 459 return a->auto_reconnect_delay; 462 460 } 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.